Mercurial > gemma
annotate schema/updates/1303/01.add_key_column.sql @ 5259:680be197844d
Merged branch new-fwa.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 13 May 2020 11:28:34 +0200 |
parents | 443867b548b5 |
children |
rev | line source |
---|---|
4673
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 ALTER TABLE sys_admin.published_services ADD key_column varchar; |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 UPDATE sys_admin.published_services SET key_column = 'isrs_code' |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 WHERE schema = 'waterway' AND name = 'gauges_geoserver'; |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
5 UPDATE sys_admin.published_services SET key_column = 'id' |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
6 WHERE schema = 'waterway' |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
7 AND name IN( |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
8 'sections_geoserver', |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
9 'stretches_geoserver', |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
10 'distance_marks_ashore_geoserver', |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
11 'bottlenecks_geoserver'); |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
12 UPDATE sys_admin.published_services SET key_column = 'location' |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
13 WHERE schema = 'waterway' AND name = 'distance_marks_geoserver'; |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
14 |
443867b548b5
Fix identifiers in layers generated from SQL views
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
15 DROP TABLE waterway.gt_pk_metadata |