diff --git a/schema/mysql-migrations/upgrade_190.sql b/schema/mysql-migrations/upgrade_190.sql new file mode 100644 index 000000000..eee825e2e --- /dev/null +++ b/schema/mysql-migrations/upgrade_190.sql @@ -0,0 +1,10 @@ +ALTER TABLE director_activity_log + MODIFY COLUMN old_properties MEDIUMTEXT DEFAULT NULL COMMENT 'Property hash, JSON', + MODIFY COLUMN new_properties MEDIUMTEXT DEFAULT NULL COMMENT 'Property hash, JSON'; + +ALTER TABLE icinga_host_var + MODIFY COLUMN varvalue MEDIUMTEXT DEFAULT NULL; + +INSERT INTO director_schema_migration +(schema_version, migration_time) +VALUES (190, NOW()); diff --git a/schema/mysql.sql b/schema/mysql.sql index 8052ecdea..f33280b95 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -35,8 +35,8 @@ CREATE TABLE director_activity_log ( object_type VARCHAR(64) NOT NULL, object_name VARCHAR(255) NOT NULL, action_name ENUM('create', 'delete', 'modify') NOT NULL, - old_properties TEXT DEFAULT NULL COMMENT 'Property hash, JSON', - new_properties TEXT DEFAULT NULL COMMENT 'Property hash, JSON', + old_properties MEDIUMTEXT DEFAULT NULL COMMENT 'Property hash, JSON', + new_properties MEDIUMTEXT DEFAULT NULL COMMENT 'Property hash, JSON', author VARCHAR(64) NOT NULL, change_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, checksum VARBINARY(20) NOT NULL, @@ -654,7 +654,7 @@ CREATE TABLE icinga_host_field ( CREATE TABLE icinga_host_var ( host_id INT(10) UNSIGNED NOT NULL, varname VARCHAR(255) NOT NULL COLLATE utf8_bin, - varvalue TEXT DEFAULT NULL, + varvalue MEDIUMTEXT DEFAULT NULL, format enum ('string', 'json', 'expression'), -- immer string vorerst checksum VARBINARY(20) DEFAULT NULL, PRIMARY KEY (host_id, varname),