root/inputs/FIA/REF_SPECIES/postprocess.sql @ 10123
1 |
SELECT util.search_path_append('util'); |
---|---|
2 |
|
3 |
SELECT set_col_types('"REF_SPECIES"', ARRAY[ |
4 |
('*SPCD', 'integer') |
5 |
]::col_cast[]); |
6 |
|
7 |
SELECT mk_const_col(('"REF_SPECIES"', '*PLANT_SYMBOL_TYPE'), 'Species'::text); |
8 |
|
9 |
SELECT create_if_not_exists($$ALTER TABLE "REF_SPECIES" ADD CONSTRAINT "REF_SPECIES.unique" UNIQUE ("*SPCD")$$); |