Bug 13810: DBRev 3.19.00.037
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 4 May 2015 14:41:33 +0000 (11:41 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 4 May 2015 14:43:58 +0000 (11:43 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/atomicupdate/bug_13810-modify_tagfield_collate_utf8_bin.sql [deleted file]
installer/data/mysql/updatedatabase.pl
kohaversion.pl

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 (file)
index 04da934..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE marc_subfield_structure MODIFY COLUMN tagsubfield varchar(1) COLLATE utf8_bin NOT NULL DEFAULT ''
index 4582e97..f8f4712 100755 (executable)
@@ -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.
index 113f8ca..f1a3db1 100644 (file)
@@ -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