Change to TEXT instead of VARCHAR. As suggested by @gpedro

This commit is contained in:
tobi132 2019-07-18 20:06:04 +02:00
parent d79ae8e927
commit 415b31e1b4
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ CREATE TABLE `myaac_monsters` (
`summonable` tinyint(1) NOT NULL, `summonable` tinyint(1) NOT NULL,
`convinceable` tinyint(1) NOT NULL, `convinceable` tinyint(1) NOT NULL,
`race` varchar(255) NOT NULL, `race` varchar(255) NOT NULL,
`loot` varchar(10000) NOT NULL, `loot` text NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8;

View File

@ -1,3 +1,3 @@
<?php <?php
$db->exec('ALTER TABLE `' . TABLE_PREFIX . 'monsters` MODIFY `loot` VARCHAR(10000) NOT NULL;'); $db->exec('ALTER TABLE `' . TABLE_PREFIX . 'monsters` MODIFY `loot` text NOT NULL;');