diff --git a/module/VuFind/sql/mysql.sql b/module/VuFind/sql/mysql.sql index 5bcf1df8a83751882428917237a6458613db71c4..f500d8e70aec0d65a4eb780b7e099b729c3ab503 100644 --- a/module/VuFind/sql/mysql.sql +++ b/module/VuFind/sql/mysql.sql @@ -171,7 +171,7 @@ CREATE TABLE `external_session` ( /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shortlinks` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `path` MEDIUMTEXT NOT NULL, + `path` mediumtext NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin; diff --git a/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php b/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php index 1be1b4663c8bb57982ad48bddce2a6271316f748..b00bd2737e17dc33fd661e0ff8098dff8c9d3a48 100644 --- a/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php +++ b/module/VuFind/src/VuFind/Controller/Plugin/DbUpgrade.php @@ -791,7 +791,9 @@ class DbUpgrade extends AbstractPlugin // If it's not a blob or a text (which don't have explicit sizes in our SQL), // we should see what the character length is, if any: - if ($type != 'blob' && $type != 'text' && $type != 'longtext') { + if ($type != 'blob' && $type != 'text' && $type !== 'mediumtext' + && $type != 'longtext' + ) { $charLen = $column->getCharacterMaximumLength(); if ($charLen) { $type .= '(' . $charLen . ')';