From 415b31e1b43cc9934fbf3b778d34d41f0d7e4d43 Mon Sep 17 00:00:00 2001 From: tobi132 Date: Thu, 18 Jul 2019 20:06:04 +0200 Subject: [PATCH] Change to TEXT instead of VARCHAR. As suggested by @gpedro --- install/includes/schema.sql | 2 +- system/migrations/25.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/includes/schema.sql b/install/includes/schema.sql index 4637e914..ae105edd 100644 --- a/install/includes/schema.sql +++ b/install/includes/schema.sql @@ -228,7 +228,7 @@ CREATE TABLE `myaac_monsters` ( `summonable` tinyint(1) NOT NULL, `convinceable` tinyint(1) NOT NULL, `race` varchar(255) NOT NULL, - `loot` varchar(10000) NOT NULL, + `loot` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; diff --git a/system/migrations/25.php b/system/migrations/25.php index 67b816da..9e87c504 100644 --- a/system/migrations/25.php +++ b/system/migrations/25.php @@ -1,3 +1,3 @@ exec('ALTER TABLE `' . TABLE_PREFIX . 'monsters` MODIFY `loot` VARCHAR(10000) NOT NULL;'); \ No newline at end of file +$db->exec('ALTER TABLE `' . TABLE_PREFIX . 'monsters` MODIFY `loot` text NOT NULL;'); \ No newline at end of file