[Lada-commits] [PATCH 3 of 8] Make all state identifiers unique
Wald Commits
scm-commit at wald.intevation.org
Fri Dec 9 16:58:39 CET 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481291837 -3600
# Node ID 9b8b18c00804be298c14396f3e35cea0f2f4392f
# Parent f8df0eae09e4ff0cbe00d09da009af02b7feefe2
Make all state identifiers unique.
diff -r f8df0eae09e4 -r 9b8b18c00804 db_schema/stammdaten_data_staat.sql
--- a/db_schema/stammdaten_data_staat.sql Fri Dec 09 14:47:13 2016 +0100
+++ b/db_schema/stammdaten_data_staat.sql Fri Dec 09 14:57:17 2016 +0100
@@ -61,7 +61,7 @@
681 Montenegro 170 ME MNE 0 19,216667 42,766667 4
682 Serbien 171 RS SB 0 20,933333 43,95 4
461 Pakistan 461 PK PK 0 73,060547 33,718151 4
-465 Taiwan 465 TW RC 0 121,506729 25,035091 4
+465 Taiwan 465 TW TW 0 121,506729 25,035091 4
467 Korea, Republik 467 KR ROK 0 126,935249 37,542351 4
472 Saudi-Arabien 472 SA KSA 0 46,77 24,65 4
475 Syrien 475 SY SYR 0 36,313454 33,519302 4
diff -r f8df0eae09e4 -r 9b8b18c00804 db_schema/stammdaten_schema.sql
--- a/db_schema/stammdaten_schema.sql Fri Dec 09 14:47:13 2016 +0100
+++ b/db_schema/stammdaten_schema.sql Fri Dec 09 14:57:17 2016 +0100
@@ -139,10 +139,10 @@
CREATE TABLE staat (
id serial PRIMARY KEY,
- staat character varying(50) NOT NULL,
- hkl_id smallint NOT NULL,
- staat_iso character varying(2),
- staat_kurz character varying(5),
+ staat character varying(50) NOT NULL UNIQUE,
+ hkl_id smallint NOT NULL UNIQUE,
+ staat_iso character varying(2) UNIQUE,
+ staat_kurz character varying(5) UNIQUE,
eu boolean,
koord_x_extern character varying(22),
koord_y_extern character varying(22),
More information about the Lada-commits
mailing list