fc.sql table is still missing from initial schema setup, shoudl be fc.sql (cmd, t)
This commit is contained in:
parent
59ffe255cc
commit
6462e742d9
@ -21,6 +21,7 @@ DECLARE
|
|||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
-----------------populate application variables--------------------------------------------
|
-----------------populate application variables--------------------------------------------
|
||||||
|
--need a handler if any of these are not specified--
|
||||||
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'order_date') INTO _order_date;
|
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'order_date') INTO _order_date;
|
||||||
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'ship_date') INTO _ship_date;
|
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'ship_date') INTO _ship_date;
|
||||||
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'order_status') INTO _order_status;
|
SELECT (SELECT cname FROM fc.target_meta WHERE appcol = 'order_status') INTO _order_status;
|
||||||
@ -180,7 +181,7 @@ INTO
|
|||||||
|
|
||||||
RAISE NOTICE '%', _sql;
|
RAISE NOTICE '%', _sql;
|
||||||
|
|
||||||
INSERT INTO fc.sql SELECT 'scale', _sql ON CONFLICT ON CONSTRAINT sql_pkey DO UPDATE SET t = EXCLUDED.t;
|
INSERT INTO fc.sql SELECT 'scale', _sql ON CONFLICT (cmd) DO UPDATE SET t = EXCLUDED.t;
|
||||||
|
|
||||||
END
|
END
|
||||||
$func$;
|
$func$;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# execure the sql for scale which builds the sql and inserts into a table
|
# execure the sql for scale which builds the sql and inserts into a table
|
||||||
$PGD -f gen_scale.sql
|
$PG -f gen_scale.sql
|
||||||
# pull the sql out of the table and write it to route directory
|
# pull the sql out of the table and write it to route directory
|
||||||
$PGD -c "SELECT t FROM fc.sql WHERE cmd = 'scale'" -t -A -o scale.sql
|
$PG -c "SELECT t FROM fc.sql WHERE cmd = 'scale'" -t -A -o scale.sql
|
||||||
|
Loading…
Reference in New Issue
Block a user