Mercurial > dive4elements > river
annotate flys-backend/contrib/hws_schema.diff @ 5126:e37b25628dd4
Fix flys/issue1144: Re-enable annotations in longitudinal_sections.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 28 Feb 2013 11:06:20 +0100 |
parents | 186dd186d5bd |
children |
rev | line source |
---|---|
4883
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 diff -r 0bb0525bca52 flys-backend/doc/schema/postgresql-drop-spatial.sql |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 --- a/flys-backend/doc/schema/postgresql-drop-spatial.sql Fri Jan 25 15:38:34 2013 +0100 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 +++ b/flys-backend/doc/schema/postgresql-drop-spatial.sql Fri Jan 25 15:42:05 2013 +0100 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 @@ -27,8 +27,14 @@ |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 DROP TABLE catchment; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
6 DROP SEQUENCE CATCHMENT_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 -DROP TABLE hws; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 -DROP SEQUENCE HWS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 +--DROP TABLE hws; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 +--DROP SEQUENCE HWS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 +DROP TABLE hws_points; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 +DROP SEQUENCE HWS_POINTS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
16 +DROP TABLE hws_lines; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 +DROP SEQUENCE HWS_LINES_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 DROP TABLE floodmaps; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 DROP SEQUENCE FLOODMAPS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
21 @@ -42,4 +48,7 @@ |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
22 DROP TABLE gauge_location; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 DROP SEQUENCE GAUGE_LOCATION_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 +DROP TABLE fed_states; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
26 +DROP TABLE hws_kinds; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
28 COMMIT; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
29 diff -r 0bb0525bca52 flys-backend/doc/schema/postgresql-spatial.sql |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 --- a/flys-backend/doc/schema/postgresql-spatial.sql Fri Jan 25 15:38:34 2013 +0100 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 +++ b/flys-backend/doc/schema/postgresql-spatial.sql Fri Jan 25 15:42:05 2013 +0100 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
32 @@ -132,20 +132,87 @@ |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
33 SELECT AddGeometryColumn('catchment','geom',31467,'POLYGON',2); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
34 ALTER TABLE catchment ALTER COLUMN id SET DEFAULT NEXTVAL('CATCHMENT_ID_SEQ'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
35 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
36 +-- Static lookup tables for Hochwasserschutzanlagen |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 +CREATE TABLE hws_kinds ( |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
38 + id int PRIMARY KEY NOT NULL, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
39 + kind VARCHAR(64) NOT NULL |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
40 +); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
41 +INSERT INTO hws_kinds (id, kind) VALUES (1, 'Durchlass'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
42 +INSERT INTO hws_kinds (id, kind) VALUES (2, 'Damm'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 +INSERT INTO hws_kinds (id, kind) VALUES (3, 'Graben'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
45 ---Hydrologie/HW-Schutzanlagen/hws.shp |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
46 -CREATE SEQUENCE HWS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
47 -CREATE TABLE hws ( |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
48 +CREATE TABLE fed_states ( |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
49 id int PRIMARY KEY NOT NULL, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
50 + name VARCHAR(23) NOT NULL |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
51 +); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
52 +INSERT INTO fed_states (id, name) VALUES (1, 'Bayern'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
53 +INSERT INTO fed_states (id, name) VALUES (2, 'Hessen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 +INSERT INTO fed_states (id, name) VALUES (3, 'Niedersachsen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 +INSERT INTO fed_states (id, name) VALUES (4, 'Nordrhein-Westfalen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 +INSERT INTO fed_states (id, name) VALUES (5, 'Rheinland-Pfalz'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 +INSERT INTO fed_states (id, name) VALUES (6, 'Saarland'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
58 +INSERT INTO fed_states (id, name) VALUES (7, 'Schleswig-Holstein'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
59 +INSERT INTO fed_states (id, name) VALUES (8, 'Brandenburg'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 +INSERT INTO fed_states (id, name) VALUES (9, 'Mecklenburg-Vorpommern'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 +INSERT INTO fed_states (id, name) VALUES (10, 'Thüringen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
62 +INSERT INTO fed_states (id, name) VALUES (11, 'Baden-Württemberg'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 +INSERT INTO fed_states (id, name) VALUES (12, 'Sachsen-Anhalt'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 +INSERT INTO fed_states (id, name) VALUES (13, 'Sachsen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 +INSERT INTO fed_states (id, name) VALUES (14, 'Berlin'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
66 +INSERT INTO fed_states (id, name) VALUES (15, 'Bremen'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 +INSERT INTO fed_states (id, name) VALUES (16, 'Hamburg'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
68 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 +--Hydrologie/HW-Schutzanlagen/*Linien.shp |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 +CREATE SEQUENCE HWS_LINES_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
71 +CREATE TABLE hws_lines ( |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
72 + id int PRIMARY KEY NOT NULL, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
73 + ogr_fid int, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
74 + kind_id int REFERENCES hws_kinds(id) DEFAULT 2, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
75 + fed_state_id int REFERENCES fed_states(id), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
76 river_id int REFERENCES rivers(id), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
77 - hws_facility VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
78 - type VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 - name VARCHAR(64), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
80 - path VARCHAR(256) |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
81 + name VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
82 + path VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 + offical INT DEFAULT 0, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
84 + agency VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
85 + range VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
86 + shore_side INT DEFAULT 0, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
87 + source VARCHAR(256), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
88 + status_date TIMESTAMP, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 + description VARCHAR(256) |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
90 ); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
91 -SELECT AddGeometryColumn('hws','geom',31467,'LINESTRING',2); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
92 -ALTER TABLE hws ALTER COLUMN id SET DEFAULT NEXTVAL('HWS_ID_SEQ'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 +SELECT AddGeometryColumn('hws_lines', 'geom', 31467, 'LINESTRING', 2); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
94 +SELECT AddGeometryColumn('hws_lines', 'geom_target', 31467, 'LINESTRING', 2); -- ? |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
95 +SELECT AddGeometryColumn('hws_lines', 'geom_rated_level', 31467, 'LINESTRING', 2); -- ? |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
96 +-- TODO: dike_km_from dike_km_to, are they geometries? |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
97 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
98 +ALTER TABLE hws_lines ALTER COLUMN id SET DEFAULT NEXTVAL('HWS_LINES_ID_SEQ'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
99 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
100 +--Hydrologie/HW-Schutzanlagen/*Punkte.shp |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
101 +CREATE SEQUENCE HWS_POINTS_ID_SEQ; |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
102 +CREATE TABLE hws_points ( |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
103 + id int PRIMARY KEY NOT NULL, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
104 + ogr_fid int, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
105 + kind_id int REFERENCES hws_kinds(id) DEFAULT 2, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
106 + fed_state_id int REFERENCES fed_states(id), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
107 + river_id int REFERENCES rivers(id), |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
108 + name VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
109 + path VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
110 + offical INT DEFAULT 0, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
111 + agency VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
112 + range VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
113 + shore_side INT DEFAULT 0, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
114 + source VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
115 + status_date VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
116 + description VARCHAR, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
117 + freeboard FLOAT8, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
118 + dike_km FLOAT8, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
119 + z FLOAT8, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
120 + z_target FLOAT8, |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
121 + rated_level FLOAT8 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
122 +); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
123 +SELECT AddGeometryColumn('hws_points', 'geom', 31467, 'POINT', 2); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
124 + |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
125 +ALTER TABLE hws_points ALTER COLUMN id SET DEFAULT NEXTVAL('HWS_POINTS_ID_SEQ'); |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
126 |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
127 -- |
186dd186d5bd
Importer: Add new HWS schema as a patch for now.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
128 --Hydrologie/UeSG |