[Koha-bugs] [Bug 13577] The correct COLLATE set to all DB tables

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 14 09:58:12 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13577

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 35176
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35176&action=edit
Bug 13577: Add the utf8_unicode_ci COLLATE to all tables

Bug 11944 added the COLLATE=utf8_unicode_ci to all DB tables.
But some new tables have been created between the write of the patch set
and the push to master.
So these new tables don't have the correct collate.

Test plan:
0/ Reproduce the error:
mysql> create database koha_test CHARACTER SET utf8 COLLATE utf8_unicode_ci;
mysql koha_test < installer/data/mysql/kohastructure.sql

It will boom with:
ERROR 1005 (HY000) at line 3493: Can't create table
`koha_test`.`items_search_fields`
(errno: 150 "Foreign key constraint is incorrectly formed")

1/ Apply the patch, destroy the DB and recreate it:
mysql> create database koha_test CHARACTER SET utf8 COLLATE utf8_unicode_ci;
mysql> drop database koha_test;
mysql koha_test < installer/data/mysql/kohastructure.sql
All tables should be inserted without any error.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list