diff --git a/schema/pgsql-changes/upgrade_34.sql b/schema/pgsql-changes/upgrade_34.sql index 6aed5e72..c8e57abe 100644 --- a/schema/pgsql-changes/upgrade_34.sql +++ b/schema/pgsql-changes/upgrade_34.sql @@ -1,6 +1,6 @@ ALTER TABLE director_generated_file ALTER COLUMN content SET DEFAULT NULL; -ALTER TABLE icinga_host_field ALTER COLUMN is_required SET DEFAULT NOT NULL; -ALTER TABLE icinga_service_field ALTER COLUMN is_required SET DEFAULT NOT NULL; +ALTER TABLE icinga_host_field ALTER COLUMN is_required SET NOT NULL; +ALTER TABLE icinga_service_field ALTER COLUMN is_required SET NOT NULL; CREATE TABLE import_source ( id serial, diff --git a/schema/pgsql.sql b/schema/pgsql.sql index aa09ddb0..b60f5787 100644 --- a/schema/pgsql.sql +++ b/schema/pgsql.sql @@ -484,7 +484,7 @@ CREATE INDEX host_inheritance_host_parent ON icinga_host_inheritance (parent_hos CREATE TABLE icinga_host_field ( host_id integer NOT NULL, datafield_id integer NOT NULL, - is_required enum_boolean DEFAULT NOT NULL, + is_required enum_boolean NOT NULL, PRIMARY KEY (host_id, datafield_id), CONSTRAINT icinga_host_field_host FOREIGN KEY (host_id) @@ -608,7 +608,7 @@ CREATE INDEX service_inheritance_service_parent ON icinga_service_inheritance (p CREATE TABLE icinga_service_field ( service_id integer NOT NULL, datafield_id integer NOT NULL, - is_required enum_boolean DEFAULT NOT NULL, + is_required enum_boolean NOT NULL, PRIMARY KEY (service_id, datafield_id), CONSTRAINT icinga_service_field_service FOREIGN KEY (service_id) @@ -1141,4 +1141,3 @@ CREATE TABLE director_datafield_setting ( ); CREATE INDEX director_datafield_datafield ON director_datafield_setting (datafield_id); -