summaryrefslogtreecommitdiffstats
path: root/schema/pgsql-migrations/upgrade_141.sql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--schema/pgsql-migrations/upgrade_141.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/schema/pgsql-migrations/upgrade_141.sql b/schema/pgsql-migrations/upgrade_141.sql
new file mode 100644
index 0000000..a382208
--- /dev/null
+++ b/schema/pgsql-migrations/upgrade_141.sql
@@ -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());