# HG changeset patch # User Tom Gottfried # Date 1616433287 -3600 # Node ID 6824c447f5b0d9ab89368f25621a6e339ab2fa28 # Parent c3afc0274bba82e121dbf9aab377fbbf1593ff4f 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. diff -r c3afc0274bba -r 6824c447f5b0 backend/doc/schema/oracle-spatial.sql --- 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, diff -r c3afc0274bba -r 6824c447f5b0 backend/doc/schema/postgresql-spatial.sql --- 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,