Koha-clms/installer/data/mysql
Tomas Cohen Arazi c655a2000a Bug 18336: Convert schema from utf8 to utf8mb4
This patch adapts the DB structure so it uses utf8mb4 encoding and
utf8mb4_generic_ci collation.

Indexes for columns of type VARCHAR with prefix lenght higher than 191
are shortened because of the smaller max index lenght for utf8mb4

Note: please beware that testing this patchset risks your data and the
patchset includes reinitializing the DB.

To test:
- Be on the master branch
- Have a clean DB:
  $ reset_all
  (y)
- Apply the first patch (Unit tests)
- Run:
  $ kshell
 k$ prove t/db_dependent/www/search_utf8.t \
          t/db_dependent/www/auth_values_input_www.t
=> FAIL: Tests fail because Koha doesn't support supplemental (UTF-8)
         chars.
- Apply the rest of this patchset
- Upgrade the schema:
  $ kshell
 k$ perl installer/data/mysql/updatedatabase.pl
- Run the tests:
 k$ prove t/db_dependent/www/search_utf8.t \
          t/db_dependent/www/auth_values_input_www.t
=> SUCCESS: Tests pass!
- Now start from a clean DB
- Run:
  $ reset_all
  (y)
- Run the tests:
 k$ prove t/db_dependent/www/search_utf8.t \
          t/db_dependent/www/auth_values_input_www.t
=> SUCCESS: Tests pass!

Verify you can use emojis all over the place (MARC records, AV
        descriptions, etc).

Sponsored-by: Hotchkiss School

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-02-16 17:53:42 -03:00
..
atomicupdate Bug 20144: DBRev 17.12.00.015 2018-02-13 14:12:41 -03:00
de-DE Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
en Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
es-ES Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
fr-CA Bug 18915: Add CHECKOUT_NOTE notice template for other languages 2018-01-15 13:42:33 -03:00
fr-FR Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
it-IT Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
mandatory Bug 17518: Displayed language name for Czech is wrong 2016-11-02 11:00:35 +00:00
nb-NO Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
pl-PL Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
ru-RU Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
uk-UA Bug 19790: Remove additionalauthors.author from installer files 2018-02-12 18:02:02 -03:00
account_offset_types.sql Bug 12768: (QA follow-up) Use specific account offset types for Processing Fee and Lost Item 2017-10-23 12:36:12 -03:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17135: [QA Follow-up] Changes as to reporting 2016-09-16 10:47:03 +00:00
kohastructure.sql Bug 18336: Convert schema from utf8 to utf8mb4 2018-02-16 17:53:42 -03:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 15752: Automatically switch to patron when cardnumber is read during circulation 2018-02-12 17:38:57 -03:00
update22to30.pl
…
updatedatabase.pl Bug 20144: DBRev 17.12.00.015 2018-02-13 14:12:41 -03:00
userflags.sql Bug 7317: Add SQL templates & sysprefs. 2017-11-09 11:26:56 -03:00
userpermissions.sql Bug 18403: Hide patron information if not part of the logged in user library group 2018-02-12 15:41:36 -03:00