schema: fix object_type for eventually erraneous

...service_set templates
This commit is contained in:
Thomas Gelf 2017-08-28 06:54:20 +02:00
parent d010d7d33a
commit fc9d40ceff
4 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,7 @@
UPDATE icinga_service_set
SET object_type = 'template'
WHERE object_type = 'object' AND host_id IS NULL;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (141, NOW());

View File

@ -1563,4 +1563,4 @@ CREATE TABLE icinga_user_resolved_var (
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (140, NOW());
VALUES (141, NOW());

View File

@ -0,0 +1,7 @@
UPDATE icinga_service_set
SET object_type = 'template'
WHERE object_type = 'object' AND host_id IS NULL;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (141, NOW());

View File

@ -1841,4 +1841,4 @@ CREATE INDEX user_resolved_var_schecksum ON icinga_user_resolved_var (checksum);
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (140, NOW());
VALUES (141, NOW());