schema/pgsql: do not enforce import end_time

This commit is contained in:
Thomas Gelf 2016-03-05 20:07:05 +01:00
parent 9ede46f839
commit 4d84b41272
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
ALTER TABLE import_run ALTER COLUMN end_time DROP NOT NULL;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (81, NOW());

View File

@ -1210,7 +1210,7 @@ CREATE TABLE import_run (
source_id integer NOT NULL,
rowset_checksum bytea CHECK(LENGTH(rowset_checksum) = 20),
start_time timestamp with time zone NOT NULL,
end_time timestamp with time zone NOT NULL,
end_time timestamp with time zone DEFAULT NULL,
succeeded enum_boolean DEFAULT NULL,
PRIMARY KEY (id),
CONSTRAINT import_run_source
@ -1415,4 +1415,4 @@ CREATE UNIQUE INDEX notification_inheritance ON icinga_notification_inheritance
-- set current schema version
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (80, NOW());
VALUES (81, NOW());