From 548de3a49c70d418d72051e5a641e3984c4100c1 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Mon, 22 Jun 2015 16:44:24 +0200 Subject: [PATCH] MySQL Schema: Change timeout datatype from medium- to smallint --- schema/mysql-changes/upgrade_9.sql | 1 + schema/mysql.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 schema/mysql-changes/upgrade_9.sql diff --git a/schema/mysql-changes/upgrade_9.sql b/schema/mysql-changes/upgrade_9.sql new file mode 100644 index 00000000..4a7b93ad --- /dev/null +++ b/schema/mysql-changes/upgrade_9.sql @@ -0,0 +1 @@ +ALTER TABLE icinga_command MODIFY timeout SMALLINT UNSIGNED DEFAULT NULL; \ No newline at end of file diff --git a/schema/mysql.sql b/schema/mysql.sql index 237002bf..5a7eccbb 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -174,7 +174,7 @@ CREATE TABLE icinga_command ( command VARCHAR(255) DEFAULT NULL, -- env text DEFAULT NULL, -- vars text DEFAULT NULL, - timeout MEDIUMINT(10) UNSIGNED DEFAULT NULL, + timeout SMALLINT UNSIGNED DEFAULT NULL, zone_id INT(10) UNSIGNED DEFAULT NULL, object_type ENUM('object', 'template', 'external_object') NOT NULL COMMENT 'external_object is an attempt to work with existing commands',