Project

General

Profile

« Previous | Next » 

Revision 8112

inputs/FIA/REF_SPECIES/postprocess.sql: Cast ID column to integer

View differences:

inputs/FIA/REF_SPECIES/postprocess.sql
2 2

  
3 3
SELECT functions.rename_if_exists($$ALTER TABLE "REF_SPECIES" RENAME "REF_SPECIES.SPCD" TO ".SPCD"$$);
4 4

  
5
SELECT functions.set_col_types(:table_str, ARRAY[
6
  ('.SPCD', 'integer')
7
]::functions.col_cast[]);
8

  
5 9
SELECT functions.create_if_not_exists($$ALTER TABLE "REF_SPECIES" ADD CONSTRAINT "REF_SPECIES.unique" UNIQUE (".SPCD")$$);

Also available in: Unified diff