summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_82.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema/mysql-migrations/upgrade_82.sql')
-rw-r--r--schema/mysql-migrations/upgrade_82.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/schema/mysql-migrations/upgrade_82.sql b/schema/mysql-migrations/upgrade_82.sql
new file mode 100644
index 0000000..e1acff8
--- /dev/null
+++ b/schema/mysql-migrations/upgrade_82.sql
@@ -0,0 +1,17 @@
+ALTER TABLE sync_rule
+ MODIFY COLUMN object_type enum(
+ 'host',
+ 'service',
+ 'command',
+ 'user',
+ 'hostgroup',
+ 'servicegroup',
+ 'usergroup',
+ 'datalistEntry',
+ 'endpoint',
+ 'zone'
+ ) NOT NULL;
+
+INSERT INTO director_schema_migration
+ SET migration_time = NOW(),
+ schema_version = 82;