summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_101.sql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--schema/mysql-migrations/upgrade_101.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/schema/mysql-migrations/upgrade_101.sql b/schema/mysql-migrations/upgrade_101.sql
new file mode 100644
index 0000000..bbe1817
--- /dev/null
+++ b/schema/mysql-migrations/upgrade_101.sql
@@ -0,0 +1,7 @@
+ALTER TABLE icinga_host
+ ADD COLUMN api_key VARCHAR(40) DEFAULT NULL AFTER accept_config,
+ ADD UNIQUE KEY api_key (api_key);
+
+INSERT INTO director_schema_migration
+ (schema_version, migration_time)
+ VALUES (101, NOW());