Revision 8099
Added by Aaron Marcuse-Kubitza over 11 years ago
postprocess.sql | ||
---|---|---|
11 | 11 |
|
12 | 12 |
-- ("STATECD", "UNITCD", "COUNTYCD", "PLOT", "INVYR", "CONDID", "SUBP", "TREE", "STATUSCD") is not unique |
13 | 13 |
SELECT functions.create_if_not_exists($$ALTER TABLE "TREE" ADD CONSTRAINT "TREE.unique" UNIQUE ("TREE.CN")$$); |
14 |
|
|
15 |
SELECT functions.create_if_not_exists($$CREATE INDEX "TREE.parent" ON "TREE" (".STATECD", ".UNITCD", ".COUNTYCD", ".PLOT", ".INVYR", ".CONDID", ".SUBP")$$); |
Also available in: Unified diff
inputs/FIA/TREE/postprocess.sql: Added index on columns that join to parent tables