MySQL Schema: Change timeout datatype from medium- to smallint

This commit is contained in:
Alexander Fuhr 2015-06-22 16:44:24 +02:00
parent 110ecf65b8
commit 548de3a49c
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE icinga_command MODIFY timeout SMALLINT UNSIGNED DEFAULT NULL;

View File

@ -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',