From 7b543dce3962582545c1371cb5abf928b92252c5 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 30 May 2018 23:58:35 -0400 Subject: [PATCH] rebuild hunt so that path is in curlies --- deploy/reload/hunt/srce.json | 14 +++++++------- interface/source_maint/srce_build_view.sql | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/deploy/reload/hunt/srce.json b/deploy/reload/hunt/srce.json index 1cf34aa..ad03365 100644 --- a/deploy/reload/hunt/srce.json +++ b/deploy/reload/hunt/srce.json @@ -8,32 +8,32 @@ "schemas": { "default": [ { - "path": "Date", + "path": "{Date}", "type": "date", "column_name": "Date" }, { - "path": "Reference Number", + "path": "{Reference Number}", "type": "numeric", "column_name": "Reference Number" }, { - "path": "Payee Name", + "path": "{Payee Name}", "type": "text", "column_name": "Payee Name" }, { - "path": "Memo", + "path": "{Memo}", "type": "text", "column_name": "Memo" }, { - "path": "Amount", - "type": "text", + "path": "{Amount}", + "type": "numeric", "column_name": "Amount" }, { - "path": "Category Name", + "path": "{Category Name}", "type": "text", "column_name": "Cateogry Name" } diff --git a/interface/source_maint/srce_build_view.sql b/interface/source_maint/srce_build_view.sql index e23cdaa..35addf6 100644 --- a/interface/source_maint/srce_build_view.sql +++ b/interface/source_maint/srce_build_view.sql @@ -1,3 +1,4 @@ +DROP FUNCTION IF EXISTS tps.build_srce_view_sql(text, text); CREATE OR REPLACE FUNCTION tps.build_srce_view_sql(_srce text, _schema text) RETURNS TEXT AS $f$ @@ -28,4 +29,4 @@ RAISE NOTICE '%',_sql; END $f$ -LANGUAGE plpgsql; +LANGUAGE plpgsql; \ No newline at end of file