comparison backend/doc/schema/postgresql.sql @ 7741:69c8d33a05e8

SCHEMA CHANGE: renamed uuid-column to avoid collision with data type.
author Tom Gottfried <tom@intevation.de>
date Thu, 06 Feb 2014 15:04:29 +0100
parents 44a9233c62eb
children a67bd7744827
comparison
equal deleted inserted replaced
7739:44a9233c62eb 7741:69c8d33a05e8
10 -- Gewaesser 10 -- Gewaesser
11 CREATE SEQUENCE RIVERS_ID_SEQ; 11 CREATE SEQUENCE RIVERS_ID_SEQ;
12 12
13 CREATE TABLE rivers ( 13 CREATE TABLE rivers (
14 id int PRIMARY KEY NOT NULL, 14 id int PRIMARY KEY NOT NULL,
15 uuid CHAR(37), 15 model_uuid CHAR(37),
16 official_number int8, 16 official_number int8,
17 name VARCHAR(256) NOT NULL UNIQUE, 17 name VARCHAR(256) NOT NULL UNIQUE,
18 km_up BOOLEAN NOT NULL DEFAULT true, 18 km_up BOOLEAN NOT NULL DEFAULT true,
19 wst_unit_id int NOT NULL REFERENCES units(id) 19 wst_unit_id int NOT NULL REFERENCES units(id)
20 ); 20 );

http://dive4elements.wald.intevation.org