[Koha-bugs] [Bug 30912] Database update fails for 21.12.00.016 Bug 30060
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 10 21:57:32 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30912
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #135877|0 |1
is obsolete| |
Attachment #135880|0 |1
is obsolete| |
--- Comment #12 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 135958
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135958&action=edit
Bug 30912: Fix db rev 21.12.00.016
Looks like MySQL v8 does not support the IF EXISTS syntax to delete
primary key (to confirmed)
ERROR: {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version
for the right syntax to use near 'IF EXISTS `PRIMARY`' at line 1 at
/usr/share/koha/lib/C4/Installer.pm line 739
Test plan:
update systempreferences set value="21.1200015" where variable="version";
restart_all
updatedatabase
ALTER TABLE user_permissions DROP PRIMARY KEY;
update systempreferences set value="21.1200015" where variable="version";
restart_all
updatedatabase
Signed-off-by: Harald <fechsaer at gmail.com>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list