2020-10-22 01:22:40 -04:00
|
|
|
--assumes schema fc already exists
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS fc.target_meta;
|
|
|
|
CREATE TABLE fc.target_meta (
|
|
|
|
tname text
|
|
|
|
,cname text
|
|
|
|
,opos int
|
|
|
|
,func text
|
|
|
|
,fkey text
|
|
|
|
,pretty text
|
|
|
|
,dtype text
|
2020-11-05 22:31:27 -05:00
|
|
|
,mastcol text
|
2020-10-22 01:22:40 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
--ALTER TABLE fc.target_meta DROP CONSTRAINT IF EXISTS target_meta_pk;
|
|
|
|
ALTER TABLE fc.target_meta ADD CONSTRAINT target_meta_pk PRIMARY KEY (tname, cname);
|
|
|
|
|
|
|
|
COMMENT ON TABLE fc.target_meta IS 'target table layout info';
|