Compare commits
No commits in common. "2605a1002f1f098e56c180c3c45b7adbca87904e" and "4ae9a5becdc74eb56af3c9b218b4389caa4020f8" have entirely different histories.
2605a1002f
...
4ae9a5becd
@ -1 +0,0 @@
|
|||||||
CREATE TABLE fc.dcard AS (SELECT * FROM tpsv.dcard_mapped) WITH DATA;
|
|
@ -1,5 +1,6 @@
|
|||||||
DROP SCHEMA fc CASCADE;
|
DROP SCHEMA fc CASCADE;
|
||||||
CREATE SCHEMA IF NOT EXISTS fc;
|
CREATE SCHEMA IF NOT EXISTS fc;
|
||||||
|
CREATE TABLE fc.dcard AS (SELECT * FROM tpsv.dcard_mapped) WITH DATA;
|
||||||
|
|
||||||
--DROP TABLE IF EXISTS fc.target_meta;
|
--DROP TABLE IF EXISTS fc.target_meta;
|
||||||
CREATE TABLE IF NOT EXISTS fc.target_meta (
|
CREATE TABLE IF NOT EXISTS fc.target_meta (
|
||||||
|
@ -36,7 +36,7 @@ BEGIN
|
|||||||
--HAVING
|
--HAVING
|
||||||
-- string_agg(cname,', ') FILTER (WHERE fkey = func) <> ''
|
-- string_agg(cname,', ') FILTER (WHERE fkey = func) <> ''
|
||||||
loop
|
loop
|
||||||
INSERT INTO fc.sql SELECT _target_table, f.func, f.ddl ON CONFLICT ON CONSTRAINT sql_pkey DO UPDATE SET t = EXCLUDED.t;
|
INSERT INTO fc.sql SELECT f.func, f.ddl ON CONFLICT ON CONSTRAINT sql_pkey DO UPDATE SET t = EXCLUDED.t;
|
||||||
EXECUTE format('%s',f.ddl);
|
EXECUTE format('%s',f.ddl);
|
||||||
EXECUTE format('%s',f.pop);
|
EXECUTE format('%s',f.pop);
|
||||||
EXECUTE format('%s',f.fk);
|
EXECUTE format('%s',f.fk);
|
||||||
|
@ -6,6 +6,5 @@
|
|||||||
"app_openstatus_code":"'OPEN','BACKORDERD'",
|
"app_openstatus_code":"'OPEN','BACKORDERD'",
|
||||||
"app_plug_fromdate":"2019-10-01",
|
"app_plug_fromdate":"2019-10-01",
|
||||||
"app_plug_todate":"2020-05-31",
|
"app_plug_todate":"2020-05-31",
|
||||||
"app_forecast_name":"dev",
|
"app_forecast_name":"dev"
|
||||||
"app_forecatt_target":"fc.dcard"
|
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,5 @@
|
|||||||
"app_forecast_name": "dev",
|
"app_forecast_name": "dev",
|
||||||
"type": "scale_vp",
|
"type": "scale_vp",
|
||||||
"app_vincr": 0,
|
"app_vincr": 0,
|
||||||
"app_pincr": 500,
|
"app_pincr": 500
|
||||||
"app_forecatt_target":"fc.dcard"
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user