1 |
8136
|
aaronmk
|
SELECT functions.to_global_col_names('"REF_SPECIES"');
|
2 |
8093
|
aaronmk
|
|
3 |
8127
|
aaronmk
|
SELECT functions.rename_if_exists($$ALTER TABLE "REF_SPECIES" RENAME "REF_SPECIES.SPCD" TO ".SPCD" $$);
|
4 |
|
|
SELECT functions.rename_if_exists($$ALTER TABLE "REF_SPECIES" RENAME "REF_SPECIES.SPECIES_SYMBOL" TO ".SYMBOL"$$);
|
5 |
8098
|
aaronmk
|
|
6 |
8136
|
aaronmk
|
SELECT functions.set_col_types('"REF_SPECIES"', ARRAY[
|
7 |
8112
|
aaronmk
|
('.SPCD', 'integer')
|
8 |
|
|
]::functions.col_cast[]);
|
9 |
|
|
|
10 |
8127
|
aaronmk
|
SELECT functions.create_if_not_exists($$ALTER TABLE "REF_SPECIES" ADD COLUMN ".SYMBOL_TYPE" text NOT NULL DEFAULT 'Species'$$);
|
11 |
|
|
|
12 |
8098
|
aaronmk
|
SELECT functions.create_if_not_exists($$ALTER TABLE "REF_SPECIES" ADD CONSTRAINT "REF_SPECIES.unique" UNIQUE (".SPCD")$$);
|