Mercurial > dive4elements > river
annotate backend/doc/schema/oracle-sinfo-uinfo.sql @ 8990:07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
author | mschaefer |
---|---|
date | Tue, 10 Apr 2018 16:40:52 +0200 |
parents | |
children | ce99d3db9477 |
rev | line source |
---|---|
8990
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
1 BEGIN; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
2 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
3 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
4 CREATE TABLE bed_mobility ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
5 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
6 river_id NUMBER(38,0) NOT NULL CONSTRAINT cBedMobilityRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
7 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
8 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
9 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
10 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
11 COMMENT ON TABLE bed_mobility IS 'Longitudinal section of the bed mobility of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
12 COMMENT ON COLUMN bed_mobility.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
13 COMMENT ON COLUMN bed_mobility.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
14 COMMENT ON COLUMN bed_mobility."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
15 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
16 CREATE SEQUENCE BED_MOBILITY_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
17 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
18 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
19 CREATE TABLE bed_mobility_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
20 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
21 bed_mobility_id NUMBER(9,0) NOT NULL CONSTRAINT cBedMobilityValuesBedMobility REFERENCES bed_mobility(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
22 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
23 moving NUMBER(1,0) DEFAULT 0 NOT NULL CHECK(moving IN (0,1)) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
24 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
25 COMMENT ON TABLE bed_mobility_values IS 'Bed mobility of a km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
26 COMMENT ON COLUMN bed_mobility_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
27 COMMENT ON COLUMN bed_mobility_values.moving IS 'Whether the river bed at the station is moving' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
28 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
29 CREATE SEQUENCE BED_MOBILITY_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
30 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
31 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
32 CREATE TABLE infrastructure ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
33 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
34 river_id NUMBER(38,0) NOT NULL CONSTRAINT cInfrastructureRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
35 annotation_type_id NUMBER(38,0) NOT NULL CONSTRAINT cInfrastructureAnnotationType REFERENCES annotation_types(id), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
36 year NUMBER(4,0) CHECK((year >= 1700) AND (year <= 2199)), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
37 dataprovider VARCHAR2(256), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
38 evaluation_by VARCHAR2(256), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
39 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
40 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
41 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
42 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
43 COMMENT ON TABLE infrastructure IS 'Longitudinal section of infrastructures of a river and a type' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
44 COMMENT ON COLUMN infrastructure.year IS 'File header line info "Stand"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
45 COMMENT ON COLUMN infrastructure.dataprovider IS 'File header line info "Datenherkunft"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
46 COMMENT ON COLUMN infrastructure.evaluation_by IS 'File header line info "Auswerter"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
47 COMMENT ON COLUMN infrastructure.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
48 COMMENT ON COLUMN infrastructure.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
49 COMMENT ON COLUMN infrastructure."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
50 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
51 CREATE SEQUENCE INFRASTRUCTURE_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
52 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
53 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
54 CREATE TABLE infrastructure_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
55 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
56 infrastructure_id NUMBER(9,0) CONSTRAINT cInfrastructureValuesInfrastructure REFERENCES infrastructure(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
57 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
58 attribute_id NUMBER(38,0) CONSTRAINT cInfrastructureValuesAttributes REFERENCES attributes(id), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
59 height NUMBER(6,2) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
60 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
61 COMMENT ON TABLE infrastructure_values IS 'Infrastructure at a river station' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
62 COMMENT ON COLUMN infrastructure_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
63 COMMENT ON COLUMN infrastructure_values.height IS 'Geodetic height of the top of the infrastructure in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
64 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
65 CREATE SEQUENCE INFRASTRUCTURE_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
66 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
67 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
68 CREATE TABLE channel ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
69 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
70 river_id NUMBER(38,0) NOT NULL CONSTRAINT cChannelRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
71 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
72 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
73 "comment" VARCHAR2(256), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
74 year_from NUMBER(4,0), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
75 year_to NUMBER(4,0) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
76 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
77 COMMENT ON TABLE channel IS 'Longitudinal section of the navigable channel of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
78 COMMENT ON COLUMN channel.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
79 COMMENT ON COLUMN channel.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
80 COMMENT ON COLUMN channel."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
81 COMMENT ON COLUMN channel.year_from IS 'Start year of the period for which the channel values are valid, NULL when valid for the whole past'; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
82 COMMENT ON COLUMN channel.year_to IS 'End year of the period for which the channel values are valid, NULL when unlimited'; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
83 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
84 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
85 CREATE SEQUENCE CHANNEL_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
86 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
87 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
88 CREATE TABLE channel_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
89 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
90 channel_id NUMBER(9,0) CONSTRAINT cChannelValuesChannel REFERENCES channel(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
91 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
92 width NUMBER(6,2), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
93 depth NUMBER(6,2) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
94 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
95 COMMENT ON TABLE channel_values IS 'Nominal size of the navigable channel at a river station' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
96 COMMENT ON COLUMN channel_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
97 COMMENT ON COLUMN channel_values.width IS 'Nominal width of the channel in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
98 COMMENT ON COLUMN channel_values.depth IS 'Nominal depth of the channel in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
99 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
100 CREATE SEQUENCE CHANNEL_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
101 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
102 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
103 CREATE TABLE collision_type ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
104 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
105 name VARCHAR2(64) NOT NULL UNIQUE |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
106 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
107 COMMENT ON TABLE collision_type IS 'Type of a ship collision' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
108 COMMENT ON COLUMN collision_type.name IS 'Name of the collision type' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
109 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
110 CREATE SEQUENCE COLLISION_TYPE_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
111 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
112 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
113 CREATE TABLE collision ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
114 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
115 river_id NUMBER(38,0) NOT NULL CONSTRAINT cCollisionRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
116 year NUMBER(4,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
117 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
118 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
119 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
120 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
121 COMMENT ON TABLE collision IS 'Longitudinal section of ship collisions with the river bed' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
122 COMMENT ON COLUMN collision.year IS 'File header line info "Jahr"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
123 COMMENT ON COLUMN collision.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
124 COMMENT ON COLUMN collision.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
125 COMMENT ON COLUMN collision."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
126 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
127 CREATE SEQUENCE COLLISION_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
128 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
129 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
130 CREATE TABLE collision_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
131 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
132 collision_id NUMBER(9,0) NOT NULL CONSTRAINT cCollisionValueCollision REFERENCES collision(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
133 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
134 event_date DATE NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
135 gauge_w NUMBER(6,2), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
136 gauge_name VARCHAR2(64), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
137 collision_type_id NUMBER(9,0) NOT NULL CONSTRAINT cCollisionValuesCollisionType REFERENCES collision_type(id) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
138 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
139 COMMENT ON TABLE collision_values IS 'Collision event' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
140 COMMENT ON COLUMN collision_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
141 COMMENT ON COLUMN collision_values.event_date IS 'Date of the collision' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
142 COMMENT ON COLUMN collision_values.gauge_w IS 'Waterlevel during the collision' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
143 COMMENT ON COLUMN collision_values.gauge_name IS 'Name of the gauge' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
144 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
145 CREATE SEQUENCE COLLISION_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
146 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
147 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
148 CREATE TABLE tkh ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
149 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
150 river_id NUMBER(38,0) NOT NULL CONSTRAINT cTkhRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
151 year NUMBER(4,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
152 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
153 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
154 sounding_info VARCHAR2(64), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
155 evaluation_by VARCHAR2(256), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
156 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
157 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
158 COMMENT ON TABLE tkh IS 'Longitudinal section of computed Transportk�rperh�he of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
159 COMMENT ON COLUMN tkh.year IS 'File header line info "Bezugsjahr"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
160 COMMENT ON COLUMN tkh.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
161 COMMENT ON COLUMN tkh.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
162 COMMENT ON COLUMN tkh.sounding_info IS 'File header line info "Peilung"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
163 COMMENT ON COLUMN tkh.evaluation_by IS 'File header line info "Auswerter"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
164 COMMENT ON COLUMN tkh."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
165 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
166 CREATE SEQUENCE TKH_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
167 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
168 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
169 CREATE TABLE tkh_column ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
170 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
171 tkh_id NUMBER(9,0) NOT NULL CONSTRAINT cTkhColumnTkh REFERENCES tkh(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
172 name VARCHAR2(64) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
173 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
174 COMMENT ON TABLE tkh_column IS 'Longitudinal section of computed Transportk�rperh�he for a waterlevel series' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
175 COMMENT ON COLUMN tkh_column.name IS 'Name of the tkh computation column' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
176 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
177 CREATE SEQUENCE TKH_COLUMN_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
178 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
179 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
180 CREATE TABLE tkh_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
181 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
182 tkh_column_id NUMBER(9,0) NOT NULL CONSTRAINT cTkhValuesTkhColumn REFERENCES tkh_column(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
183 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
184 tkheight NUMBER(7,3) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
185 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
186 COMMENT ON TABLE tkh_values IS 'Transportk�rperh�he of a river station and referenced file column' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
187 COMMENT ON COLUMN tkh_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
188 COMMENT ON COLUMN tkh_values.tkheight IS 'Transportk�rperh�he of a river station computed for a waterlevel in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
189 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
190 CREATE SEQUENCE TKH_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
191 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
192 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
193 CREATE TABLE flow_depth ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
194 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
195 river_id NUMBER(38,0) NOT NULL CONSTRAINT cFlowDepthRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
196 year NUMBER(4,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
197 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
198 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
199 sounding_info VARCHAR2(64), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
200 evaluation_by VARCHAR2(255), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
201 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
202 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
203 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
204 COMMENT ON TABLE flow_depth IS 'Longitudinal section of computed flow depth of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
205 COMMENT ON COLUMN flow_depth.year IS 'File header line info "Bezugsjahr"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
206 COMMENT ON COLUMN flow_depth.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
207 COMMENT ON COLUMN flow_depth.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
208 COMMENT ON COLUMN flow_depth.sounding_info IS 'File header line info "Peilung"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
209 COMMENT ON COLUMN flow_depth.evaluation_by IS 'File header line info "Auswerter"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
210 COMMENT ON COLUMN flow_depth."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
211 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
212 CREATE SEQUENCE FLOW_DEPTH_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
213 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
214 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
215 CREATE TABLE flow_depth_column ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
216 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
217 flow_depth_id NUMBER(9,0) NOT NULL CONSTRAINT cFlowDepthColumnFlowDepth REFERENCES flow_depth(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
218 name VARCHAR2(64) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
219 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
220 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
221 COMMENT ON TABLE flow_depth_column IS 'Longitudinal section of computed flow depth for a waterlevel series' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
222 COMMENT ON COLUMN flow_depth_column.name IS 'Name of the flow depth computation column' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
223 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
224 CREATE SEQUENCE FLOW_DEPTH_COLUMN_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
225 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
226 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
227 CREATE TABLE flow_depth_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
228 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
229 flow_depth_column_id NUMBER(9,0) NOT NULL CONSTRAINT cFlowDepthValuesFlowDepthColumn REFERENCES flow_depth_column(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
230 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
231 depth NUMBER(7,3) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
232 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
233 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
234 COMMENT ON TABLE flow_depth_values IS 'Flow depth of a river station and referenced file column' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
235 COMMENT ON COLUMN flow_depth_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
236 COMMENT ON COLUMN flow_depth_values.depth IS 'Flow depth of a river station computed for a waterlevel in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
237 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
238 CREATE SEQUENCE FLOW_DEPTH_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
239 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
240 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
241 CREATE TABLE depth_evolution ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
242 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
243 river_id NUMBER(38,0) NOT NULL CONSTRAINT cDepthEvolutionRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
244 reference_year NUMBER(4,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
245 start_year NUMBER(4,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
246 curr_sounding VARCHAR2(64) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
247 old_sounding VARCHAR2(64) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
248 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
249 curr_glw VARCHAR2(64) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
250 old_glw VARCHAR2(64) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
251 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
252 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
253 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
254 COMMENT ON TABLE depth_evolution IS 'Longitudinal section of the evolution of the flow depth of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
255 COMMENT ON COLUMN depth_evolution.reference_year IS 'File header line info "Bezugsjahr" (GlW)' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
256 COMMENT ON COLUMN depth_evolution.start_year IS 'File header line info "Ausgangsjahr" (GlW)' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
257 COMMENT ON COLUMN depth_evolution.curr_sounding IS 'File header line info "Aktuelle Peilung / Epoche"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
258 COMMENT ON COLUMN depth_evolution.old_sounding IS 'File header line info "Historische Peilung / Epoche"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
259 COMMENT ON COLUMN depth_evolution.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
260 COMMENT ON COLUMN depth_evolution.curr_glw IS 'File header line info "Aktuelle Wasserspiegellage"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
261 COMMENT ON COLUMN depth_evolution.old_glw IS 'File header line info "Historische Wasserspiegellage"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
262 COMMENT ON COLUMN depth_evolution.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
263 COMMENT ON COLUMN depth_evolution."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
264 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
265 CREATE SEQUENCE DEPTH_EVOLUTION_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
266 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
267 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
268 CREATE TABLE depth_evolution_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
269 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
270 depth_evolution_id NUMBER(9,0) NOT NULL CONSTRAINT cDepthEvolutionValuesDepthEvolution REFERENCES depth_evolution(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
271 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
272 total_change NUMBER(8,4), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
273 change_per_year NUMBER(8,4) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
274 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
275 COMMENT ON TABLE depth_evolution_values IS 'Evolution of the flow depth of a river station in a referenced period of time' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
276 COMMENT ON COLUMN depth_evolution_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
277 COMMENT ON COLUMN depth_evolution_values.total_change IS 'Flow depth change of the whole period of time in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
278 COMMENT ON COLUMN depth_evolution_values.change_per_year IS 'Average yearly flow depth change in the referenced period of time in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
279 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
280 CREATE SEQUENCE DEPTH_EVOLUTION_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
281 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
282 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
283 CREATE TABLE daily_discharge ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
284 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
285 gauge_id NUMBER(38,0) NOT NULL CONSTRAINT cDailyDischargeGauge REFERENCES gauges(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
286 filename VARCHAR2(256) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
287 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
288 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
289 COMMENT ON TABLE daily_discharge IS 'Daily discharge value series' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
290 COMMENT ON COLUMN daily_discharge.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
291 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
292 CREATE SEQUENCE DAILY_DISCHARGE_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
293 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
294 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
295 CREATE TABLE daily_discharge_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
296 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
297 daily_discharge_id NUMBER(9,0) NOT NULL CONSTRAINT cDailyDischargeValueDailyDischarge REFERENCES daily_discharge(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
298 day DATE NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
299 discharge NUMBER(8,3) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
300 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
301 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
302 COMMENT ON TABLE daily_discharge_values IS 'Mean daily discharge of a date and a gauge' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
303 COMMENT ON COLUMN daily_discharge_values.day IS 'Date of the discharge value' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
304 COMMENT ON COLUMN daily_discharge_values.discharge IS 'Mean daily discharge in m^3/s' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
305 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
306 CREATE SEQUENCE DAILY_DISCHARGE_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
307 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
308 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
309 CREATE TABLE salix ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
310 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
311 river_id NUMBER(38,0) NOT NULL CONSTRAINT cSalixRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
312 evaluation_by VARCHAR2(255), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
313 kmrange_info VARCHAR2(32), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
314 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
315 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
316 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
317 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
318 COMMENT ON TABLE salix IS 'Longitudinal section of the salix line parameters of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
319 COMMENT ON COLUMN salix.evaluation_by IS 'File header line info "Auswerter"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
320 COMMENT ON COLUMN salix.kmrange_info IS 'File header line info "Strecke"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
321 COMMENT ON COLUMN salix.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
322 COMMENT ON COLUMN salix."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
323 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
324 CREATE SEQUENCE SALIX_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
325 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
326 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
327 CREATE TABLE salix_values ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
328 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
329 salix_id NUMBER(9,0) NOT NULL CONSTRAINT cSalixValuesSalix REFERENCES salix(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
330 station NUMBER(7,3) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
331 factor NUMBER(6,2) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
332 mnw_mw_diff NUMBER(6,2) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
333 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
334 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
335 COMMENT ON COLUMN salix_values.station IS 'River km' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
336 COMMENT ON COLUMN salix_values.factor IS 'Salix "factor" of the station in m' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
337 COMMENT ON COLUMN salix_values.mnw_mw_diff IS 'Difference between MNW and MW in m (less than zero)' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
338 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
339 CREATE SEQUENCE SALIX_VALUES_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
340 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
341 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
342 CREATE TABLE salix_rank ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
343 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
344 min_value NUMBER(6,2), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
345 max_value NUMBER(6,2), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
346 name VARCHAR2(16) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
347 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
348 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (1, NULL, -0.3, 'invalid'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
349 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (2, -0.3, 0.3, 'very good'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
350 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (3, 0.3, 0.5, 'good'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
351 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (4, 0.5, 1.0, 'moderate'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
352 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (5, 1.0, 1.5, 'bad'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
353 INSERT INTO salix_rank (id, min_value, max_value, name) VALUES (6, 1.5, NULL, 'very bad'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
354 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
355 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
356 CREATE TABLE vegetation_type ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
357 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
358 name VARCHAR2(256) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
359 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
360 INSERT INTO vegetation_type (id, name) VALUES (1, 'zonal forest'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
361 INSERT INTO vegetation_type (id, name) VALUES (2, 'dry hartwood forest floodplain'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
362 INSERT INTO vegetation_type (id, name) VALUES (3, 'wet hartwood forest floodplain'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
363 INSERT INTO vegetation_type (id, name) VALUES (4, 'salix alba forest'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
364 INSERT INTO vegetation_type (id, name) VALUES (5, 'salix shrubs'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
365 INSERT INTO vegetation_type (id, name) VALUES (6, 'reed bed'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
366 INSERT INTO vegetation_type (id, name) VALUES (7, 'bank pioneers'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
367 INSERT INTO vegetation_type (id, name) VALUES (8, 'no vegetation'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
368 INSERT INTO vegetation_type (id, name) VALUES (9, 'water'); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
369 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
370 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
371 CREATE TABLE vegetation ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
372 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
373 river_id NUMBER(38,0) NOT NULL CONSTRAINT cVegetationRivers REFERENCES rivers(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
374 name VARCHAR2(256), |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
375 filename VARCHAR2(256) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
376 "comment" VARCHAR2(256) |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
377 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
378 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
379 COMMENT ON TABLE vegetation IS 'Classification of the vegetation of a river' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
380 COMMENT ON COLUMN vegetation.name IS 'File header line info "Einteilung"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
381 COMMENT ON COLUMN vegetation.filename IS 'Name without type extension of the imported file' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
382 COMMENT ON COLUMN vegetation."comment" IS 'File header line info "weitere Bemerkungen"' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
383 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
384 CREATE SEQUENCE VEGETATION_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
385 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
386 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
387 CREATE TABLE vegetation_zone ( |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
388 id NUMBER(9,0) PRIMARY KEY, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
389 vegetation_id NUMBER(9,0) NOT NULL CONSTRAINT cVegetationZoneVegetation REFERENCES vegetation(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
390 vegetation_type_id NUMBER(9,0) NOT NULL CONSTRAINT cVegetationZoneVegetationType REFERENCES vegetation_type(id) ON DELETE CASCADE, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
391 min_overflow_days NUMBER(3,0) NOT NULL, |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
392 max_overflow_days NUMBER(3,0) NOT NULL |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
393 ); |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
394 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
395 COMMENT ON TABLE vegetation_zone IS 'Vegetation zone of a river station' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
396 COMMENT ON COLUMN vegetation_zone.min_overflow_days IS 'Minimum number (inclusive) of overflow days in a year for the zone type' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
397 COMMENT ON COLUMN vegetation_zone.max_overflow_days IS 'Maximum number (exclusive) of overflow days in a year for the zone type' ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
398 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
399 CREATE SEQUENCE VEGETATION_ZONE_ID_SEQ ; |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
400 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
401 |
07dcedddf839
Oracle schema extension added, a few changes in the postgresql schema
mschaefer
parents:
diff
changeset
|
402 COMMIT; |