BZ2222 : db definition for frameworkcode in auth_subfield_structure incorrect
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 17 Nov 2009 20:41:13 +0000 (21:41 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 17 Nov 2009 21:08:52 +0000 (22:08 +0100)
db definition for frameworkcode was only varchar(8)
corected to 10

installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index ba85b04..a1bf59b 100644 (file)
@@ -55,7 +55,7 @@ CREATE TABLE `auth_subfield_structure` (
   `hidden` tinyint(3) NOT NULL default 0,
   `linkid` tinyint(1) NOT NULL default 0,
   `kohafield` varchar(45) NULL default '',
-  `frameworkcode` varchar(8) NOT NULL default '',
+  `frameworkcode` varchar(10) NOT NULL default '',
   PRIMARY KEY  (`authtypecode`,`tagfield`,`tagsubfield`),
   KEY `tab` (`authtypecode`,`tab`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
index 08e2627..f88fdd7 100755 (executable)
@@ -3277,7 +3277,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
        ALTER TABLE aqbasketgroups ADD billingplace VARCHAR(10) NOT NULL AFTER deliverycomment;
        });
        
-    print "Upgrade to $DBversion done (isbd updated)\n";
+    print "Upgrade to $DBversion done (Adding billingplace to aqbasketgroups)\n";
+    SetVersion ($DBversion);
+}
+
+$DBversion = "3.01.00.128";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+       $dbh->do(qq{
+       ALTER TABLE auth_subfield_structure MODIFY frameworkcode VARCHAR(10) NULL;
+       });
+       
+    print "Upgrade to $DBversion done (changing frameworkcode length in auth_subfield_structure)\n";
     SetVersion ($DBversion);
 }
 
index de92273..2ef1668 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.01.00.125';
+    our $VERSION = '3.01.00.128';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install