DB Bump 094 - bug 2268 -- allow mixed case subfield labels in MARC21 by changing db column collation.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2008-06-22 16:35:48 -05:00 committed by Joshua Ferraro
parent c1b67b7b0d
commit 67e20d82ff
3 changed files with 9 additions and 2 deletions

View 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,

View file

@ -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

View 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