schema/pgsql: fix the upgrade and the schema not null attribute
fixes #9783
This commit is contained in:
parent
f5ebb06d8a
commit
9c03ef5b62
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue