schema/mysql: correct varname collation

Thanks to @jschanz for tracking this down

fixes #762
This commit is contained in:
Thomas Gelf 2017-02-17 14:43:00 +01:00
parent 736244e9e9
commit cc6a5fe230
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
ALTER TABLE director_datafield
MODIFY COLUMN varname VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin;
INSERT INTO director_schema_migration
(schema_version, migration_time)
VALUES (129, NOW());

View File

@ -120,7 +120,7 @@ CREATE TABLE director_datalist_entry (
CREATE TABLE director_datafield ( CREATE TABLE director_datafield (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
varname VARCHAR(64) NOT NULL, varname VARCHAR(64) NOT NULL COLLATE utf8_bin,
caption VARCHAR(255) NOT NULL, caption VARCHAR(255) NOT NULL,
description TEXT DEFAULT NULL, description TEXT DEFAULT NULL,
datatype varchar(255) NOT NULL, datatype varchar(255) NOT NULL,
@ -1508,4 +1508,4 @@ CREATE TABLE icinga_user_resolved_var (
INSERT INTO director_schema_migration INSERT INTO director_schema_migration
(schema_version, migration_time) (schema_version, migration_time)
VALUES (128, NOW()); VALUES (129, NOW());