From b551651f7e6aa6a75005a33c41826f47ec6e6cf1 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 9 Feb 2016 19:37:23 +0100 Subject: [PATCH] schema/mysql: introduce the director_setting table --- schema/mysql-migrations/upgrade_64.sql | 10 ++++++++++ schema/mysql.sql | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 schema/mysql-migrations/upgrade_64.sql diff --git a/schema/mysql-migrations/upgrade_64.sql b/schema/mysql-migrations/upgrade_64.sql new file mode 100644 index 00000000..ded1a0c7 --- /dev/null +++ b/schema/mysql-migrations/upgrade_64.sql @@ -0,0 +1,10 @@ +CREATE TABLE director_setting ( + setting_name VARCHAR(64) NOT NULL, + setting_value VARCHAR(255) NOT NULL, + PRIMARY KEY(setting_name) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +INSERT INTO director_schema_migration + SET migration_time = NOW(), + schema_version = 64; + diff --git a/schema/mysql.sql b/schema/mysql.sql index 002c423c..baab6e8b 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -151,6 +151,12 @@ CREATE TABLE director_schema_migration ( PRIMARY KEY(schema_version) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE director_setting ( + setting_name VARCHAR(64) NOT NULL, + setting_value VARCHAR(255) NOT NULL, + PRIMARY KEY(setting_name) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE icinga_zone ( id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL, parent_id INT(10) UNSIGNED DEFAULT NULL, @@ -1027,5 +1033,5 @@ CREATE TABLE import_row_modifier_setting ( INSERT INTO director_schema_migration SET migration_time = NOW(), - schema_version = 63; + schema_version = 64;