channel_data value should be a mediumtext

This commit is contained in:
calzoneman 2015-10-01 22:13:16 -07:00
parent 56a2a52bdd
commit bed7e65fc0

View file

@ -108,7 +108,7 @@ const TBL_CHANNEL_DATA = "" +
"CREATE TABLE IF NOT EXISTS `channel_data` (" +
"`channel_id` INT NOT NULL," +
"`key` VARCHAR(20) NOT NULL," +
"`value` TEXT CHARACTER SET utf8mb4 NOT NULL," +
"`value` MEDIUMTEXT CHARACTER SET utf8mb4 NOT NULL," +
"PRIMARY KEY (`channel_id`, `key`)," +
"FOREIGN KEY (`channel_id`) REFERENCES `channels`(`id`) ON DELETE CASCADE" +
") CHARACTER SET utf8";