schema/upgrade_127: avoid problems with utf8mb4

This commit is contained in:
Thomas Gelf 2016-12-16 14:27:39 +01:00
parent 726b320d24
commit ee5ca2f33e
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ CREATE TABLE icinga_flat_var (
flatname VARCHAR(512) NOT NULL COLLATE utf8_bin,
flatvalue TEXT NOT NULL,
PRIMARY KEY (var_checksum, flatname_checksum),
INDEX search_varname (flatname),
INDEX search_varname (flatname (191)),
INDEX search_varvalue (flatvalue (128)),
CONSTRAINT flat_var_var
FOREIGN KEY checksum (var_checksum)

View File

@ -1398,7 +1398,7 @@ CREATE TABLE icinga_flat_var (
flatname VARCHAR(512) NOT NULL COLLATE utf8_bin,
flatvalue TEXT NOT NULL,
PRIMARY KEY (var_checksum, flatname_checksum),
INDEX search_varname (flatname),
INDEX search_varname (flatname (191)),
INDEX search_varvalue (flatvalue (128)),
CONSTRAINT flat_var_var
FOREIGN KEY checksum (var_checksum)