Revision 8166
Added by Aaron Marcuse-Kubitza almost 12 years ago
import | ||
---|---|---|
13 | 13 |
, ('.INVYR' , 'integer') |
14 | 14 |
]::functions.col_cast[]); |
15 | 15 |
|
16 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.ID" UNIQUE ("PLOT.CN") $$);
|
|
17 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.unique" UNIQUE (".STATECD", ".UNITCD", ".COUNTYCD", ".PLOT", ".INVYR")$$);
|
|
16 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.ID" UNIQUE ("PLOT.CN") $$); |
|
17 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.unique" UNIQUE ("STATECD", "UNITCD", "COUNTYCD", "PLOT", "INVYR")$$);
|
|
18 | 18 |
SELECT functions.cluster_once('"PLOT"', '"PLOT.unique"'); |
Also available in: Unified diff
inputs/FIA/*/map.csv: Removed no longer needed leading . from joined fields (globally-unique terms), because functions.to_global_col_names() is not used anymore