Revision 8098
Added by Aaron Marcuse-Kubitza almost 12 years ago
postprocess.sql | ||
---|---|---|
1 | 1 |
SELECT functions.to_global_col_names(:table_str); |
2 | 2 |
|
3 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.unique" UNIQUE ("PLOT.STATECD", "PLOT.UNITCD", "PLOT.COUNTYCD", "PLOT.PLOT", "PLOT.INVYR")$$); |
|
3 |
SELECT functions.rename_if_exists($$ALTER TABLE "PLOT" RENAME "PLOT.STATECD" TO ".STATECD" $$); |
|
4 |
SELECT functions.rename_if_exists($$ALTER TABLE "PLOT" RENAME "PLOT.UNITCD" TO ".UNITCD" $$); |
|
5 |
SELECT functions.rename_if_exists($$ALTER TABLE "PLOT" RENAME "PLOT.COUNTYCD" TO ".COUNTYCD"$$); |
|
6 |
SELECT functions.rename_if_exists($$ALTER TABLE "PLOT" RENAME "PLOT.PLOT" TO ".PLOT" $$); |
|
7 |
SELECT functions.rename_if_exists($$ALTER TABLE "PLOT" RENAME "PLOT.INVYR" TO ".INVYR" $$); |
|
8 |
|
|
9 |
SELECT functions.create_if_not_exists($$ALTER TABLE "PLOT" ADD CONSTRAINT "PLOT.unique" UNIQUE (".STATECD", ".UNITCD", ".COUNTYCD", ".PLOT", ".INVYR")$$); |
Also available in: Unified diff
inputs/FIA/*/postprocess.sql: Removed table prefix from globally-unique columns that should be joined on