From cb9366c5f53de1fa86f5729357a55bcee5c0f874 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 15 Oct 2018 20:27:54 +0200 Subject: [PATCH] schema: reset unnecessary command argument format ...definitions --- schema/mysql-migrations/upgrade_154.sql | 12 ++++++++++++ schema/mysql.sql | 2 +- schema/pgsql-migrations/upgrade_154.sql | 12 ++++++++++++ schema/pgsql.sql | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 schema/mysql-migrations/upgrade_154.sql create mode 100644 schema/pgsql-migrations/upgrade_154.sql diff --git a/schema/mysql-migrations/upgrade_154.sql b/schema/mysql-migrations/upgrade_154.sql new file mode 100644 index 00000000..08274b03 --- /dev/null +++ b/schema/mysql-migrations/upgrade_154.sql @@ -0,0 +1,12 @@ + +UPDATE icinga_command_argument +SET argument_format = NULL +WHERE argument_value IS NULL; + +UPDATE icinga_command_argument +SET set_if_format = NULL +WHERE set_if IS NULL; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (154, NOW()); diff --git a/schema/mysql.sql b/schema/mysql.sql index ae376bb7..b31de92f 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -1771,4 +1771,4 @@ CREATE TABLE icinga_timeperiod_exclude ( INSERT INTO director_schema_migration (schema_version, migration_time) - VALUES (153, NOW()); + VALUES (154, NOW()); diff --git a/schema/pgsql-migrations/upgrade_154.sql b/schema/pgsql-migrations/upgrade_154.sql new file mode 100644 index 00000000..08274b03 --- /dev/null +++ b/schema/pgsql-migrations/upgrade_154.sql @@ -0,0 +1,12 @@ + +UPDATE icinga_command_argument +SET argument_format = NULL +WHERE argument_value IS NULL; + +UPDATE icinga_command_argument +SET set_if_format = NULL +WHERE set_if IS NULL; + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (154, NOW()); diff --git a/schema/pgsql.sql b/schema/pgsql.sql index 63f2f72c..4b0bb250 100644 --- a/schema/pgsql.sql +++ b/schema/pgsql.sql @@ -2068,4 +2068,4 @@ CREATE TABLE icinga_timeperiod_exclude ( INSERT INTO director_schema_migration (schema_version, migration_time) - VALUES (153, NOW()); + VALUES (154, NOW());