[Dive4elements-commits] [PATCH 1 of 2] Minimal schema change: allow longer names in discharge zones
Wald Commits
scm-commit at wald.intevation.org
Tue Jun 18 19:33:51 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1371576751 -7200
# Branch double-precision
# Node ID 7fb0e755e4fa50a81d2b1623dd16137a7ed1edf5
# Parent cc21c197d2043785a454d816f3f313c748238509
Minimal schema change: allow longer names in discharge zones
diff -r cc21c197d204 -r 7fb0e755e4fa backend/doc/schema/oracle-minfo.sql
--- a/backend/doc/schema/oracle-minfo.sql Tue Jun 18 16:05:10 2013 +0200
+++ b/backend/doc/schema/oracle-minfo.sql Tue Jun 18 19:32:31 2013 +0200
@@ -179,8 +179,8 @@
river_id NUMBER(38,0) NOT NULL,
gauge_name VARCHAR(64) NOT NULL, -- this is not very proper, but there are gauges with no db instance
value NUMBER(38,3) NOT NULL,
- lower_discharge VARCHAR(16) NOT NULL,
- upper_discharge VARCHAR(16),
+ lower_discharge VARCHAR(64) NOT NULL,
+ upper_discharge VARCHAR(64),
PRIMARY KEY(id),
CONSTRAINT fk_dz_river_id FOREIGN KEY (river_id) REFERENCES rivers(id) ON DELETE CASCADE
);
diff -r cc21c197d204 -r 7fb0e755e4fa backend/doc/schema/postgresql-minfo.sql
--- a/backend/doc/schema/postgresql-minfo.sql Tue Jun 18 16:05:10 2013 +0200
+++ b/backend/doc/schema/postgresql-minfo.sql Tue Jun 18 19:32:31 2013 +0200
@@ -179,8 +179,8 @@
river_id int NOT NULL,
gauge_name VARCHAR(64) NOT NULL, -- this is not very proper, but there are gauges with no db instance
value NUMERIC NOT NULL,
- lower_discharge VARCHAR(16) NOT NULL,
- upper_discharge VARCHAR(16),
+ lower_discharge VARCHAR(64) NOT NULL,
+ upper_discharge VARCHAR(64),
PRIMARY KEY(id),
CONSTRAINT fk_dz_river_id FOREIGN KEY (river_id) REFERENCES rivers(id) ON DELETE CASCADE
);
More information about the Dive4elements-commits
mailing list