From 0e74f0370624f9ab01fccfe27d37403ed1686ad9 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 4 May 2015 11:41:33 -0300 Subject: [PATCH] Bug 13810: DBRev 3.19.00.037 Signed-off-by: Tomas Cohen Arazi --- .../bug_13810-modify_tagfield_collate_utf8_bin.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ kohaversion.pl | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13810-modify_tagfield_collate_utf8_bin.sql diff --git a/installer/data/mysql/atomicupdate/bug_13810-modify_tagfield_collate_utf8_bin.sql b/installer/data/mysql/atomicupdate/bug_13810-modify_tagfield_collate_utf8_bin.sql deleted file mode 100644 index 04da934752..0000000000 --- a/installer/data/mysql/atomicupdate/bug_13810-modify_tagfield_collate_utf8_bin.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE marc_subfield_structure MODIFY COLUMN tagsubfield varchar(1) COLLATE utf8_bin NOT NULL DEFAULT '' diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4582e97ac1..f8f4712ed4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10363,6 +10363,16 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.19.00.037"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + ALTER TABLE marc_subfield_structure + MODIFY COLUMN tagsubfield varchar(1) COLLATE utf8_bin NOT NULL DEFAULT '' + |); + print "Upgrade to $DBversion done (Bug 13810: Change collate for tagsubfield (utf8_bin))\n"; + SetVersion ($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. diff --git a/kohaversion.pl b/kohaversion.pl index 113f8ca6cd..f1a3db1345 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.19.00.036'; + our $VERSION = '3.19.00.037'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5