Mercurial > dive4elements > river
changeset 9717:6824c447f5b0 3.2.x
Ensure pseudo-boolean values in hws_lines.official
NULL values lead to a null pointer in HWSFactory and the semantic of the
column is clearly boolean. See also rev. aef987124822 for a related fix
in the importer.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 22 Mar 2021 18:14:47 +0100 (2021-03-22) |
parents | c3afc0274bba |
children | ee1b409af91c |
files | backend/doc/schema/oracle-spatial.sql backend/doc/schema/postgresql-spatial.sql |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/doc/schema/oracle-spatial.sql Mon Mar 22 17:35:30 2021 +0100 +++ b/backend/doc/schema/oracle-spatial.sql Mon Mar 22 18:14:47 2021 +0100 @@ -223,7 +223,7 @@ river_id NUMBER(38) REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(256), path VARCHAR(256), - official NUMBER DEFAULT 0, + official NUMBER(1) DEFAULT 0 NOT NULL CHECK(official IN(0,1)), agency VARCHAR(256), range VARCHAR(256), shore_side NUMBER DEFAULT 0,
--- a/backend/doc/schema/postgresql-spatial.sql Mon Mar 22 17:35:30 2021 +0100 +++ b/backend/doc/schema/postgresql-spatial.sql Mon Mar 22 18:14:47 2021 +0100 @@ -177,7 +177,7 @@ river_id int REFERENCES rivers(id) ON DELETE CASCADE, name VARCHAR(256), path VARCHAR(256), - official INT DEFAULT 0, + official INT DEFAULT 0 NOT NULL CHECK(official IN(0,1)), agency VARCHAR(256), range VARCHAR(256), shore_side INT DEFAULT 0,