Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions schema/mysql-migrations/upgrade_190.sql
Original file line number Diff line number Diff line change
@@ -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());
6 changes: 3 additions & 3 deletions schema/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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),
Expand Down
Loading