Koha/installer/data/mysql
Kevin Carnes 4c6517767a
Bug 34516: Upgrade database fails for 22.11.07.003, points to web installer
MySQL requires key length for indexes of text columns, while MariaDB
sets it automatically for utf8mb4.

Test plan:
1. Setup Koha to use MySQL (e.g. ku-my8)
2. Downgrade database with the following commands (e.g. koha-mysql
   kohadev):
   ALTER TABLE `biblioitems` MODIFY COLUMN `publishercode` varchar(255);
   ALTER TABLE `biblioitems` DROP INDEX `publishercode`;
   ALTER TABLE `biblioitems` ADD INDEX `publishercode` (`publishercode`);
   ALTER TABLE `deletedbiblioitems` MODIFY COLUMN `publishercode` varchar(255);
   ALTER TABLE `deletedbiblioitems` DROP INDEX `publishercode`;
   ALTER TABLE `deletedbiblioitems` ADD INDEX `publishercode` (`publishercode`);
   UPDATE systempreferences SET value="23.0600006" WHERE variable = "Version";
3. Attempt to upgrade the database (e.g. koha-upgrade-schema kohadev)
4. Notice the error about "key specification without a key length"
5. Apply patch
6. Attempt to upgrade the database (e.g. koha-upgrade-schema kohadev)
7. Notice that the database is upgraded
8. Sign off

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>

Perltidied the database update file.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2023-12-11 19:41:23 +01:00
..
atomicupdate Bug 12133: DBRev 23.06.00.079 2023-11-10 10:59:42 -03:00
db_revs Bug 34516: Upgrade database fails for 22.11.07.003, points to web installer 2023-12-11 19:41:23 +01:00
en Bug 17617: Add HOLDPLACED_PATRON notice 2023-11-08 11:41:25 -03:00
localization Bug 34558: Update custom.sql for it-IT webinstaller 2023-10-09 11:41:31 -03:00
mandatory Bug 12133: Add requirements for guarantor and guarantee 2023-11-10 10:59:40 -03:00
backfill_statistics.pl
fix_unclosed_nonaccruing_fines_bug17135.pl
kohastructure.sql 23.11.00: Update kohastructure.sql 2023-11-30 14:58:49 -03:00
labels_upgrade.pl
patroncards_upgrade.pl
update22to30.pl
updatedatabase.pl