DB Bump 094 - bug 2268 -- allow mixed case subfield labels in MARC21 by changing...
authorRyan Higgins <rch@liblime.com>
Sun, 22 Jun 2008 21:35:48 +0000 (16:35 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 23 Jun 2008 13:00:03 +0000 (08:00 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index c48d3ec..f652e50 100644 (file)
@@ -1268,7 +1268,7 @@ CREATE TABLE `letter` (
 DROP TABLE IF EXISTS `marc_subfield_structure`;
 CREATE TABLE `marc_subfield_structure` (
   `tagfield` varchar(3) NOT NULL default '',
-  `tagsubfield` varchar(1) NOT NULL default '',
+  `tagsubfield` varchar(1) NOT NULL default '' COLLATE utf8_bin,
   `liblibrarian` varchar(255) NOT NULL default '',
   `libopac` varchar(255) NOT NULL default '',
   `repeatable` tinyint(4) NOT NULL default 0,
index 7d095bf..807d83d 100755 (executable)
@@ -1808,6 +1808,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.00.00.094";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("ALTER TABLE `marc_subfield_structure` MODIFY `tagsubfield` VARCHAR(1) NOT NULL DEFAULT '' COLLATE utf8_bin");
+       print "Upgrade to $DBversion done (Change Collation of marc_subfield_structure to allow mixed case in subfield labels.)\n";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index f0e7806..1a0f8da 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = "3.00.00.093";
+    our $VERSION = "3.00.00.094";
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install