Fixed wrong SQL syntax in updatedatabase.
authorJean-André Santoni <jeanandre.santoni@biblibre.com>
Fri, 6 Nov 2009 12:30:28 +0000 (13:30 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 10 Nov 2009 21:23:47 +0000 (22:23 +0100)
installer/data/mysql/updatedatabase.pl

index 3dd7319..42631b8 100755 (executable)
@@ -3150,10 +3150,10 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 $DBversion = "3.01.00.123";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
        $dbh->do(qq{
-       ALTER TABLE aqbasketgroups ADD deliveryplace VARCHAR(10), deliverycomment VARCHAR(255);
+       ALTER TABLE aqbasketgroups ADD deliveryplace VARCHAR(10) default NULL ADD deliverycomment VARCHAR(255) default NULL;
        });
        
-    print "Upgrade to $DBversion done (adding deliveryplace deliverycomment to basketgroups)\n";
+    print "Upgrade to $DBversion done (isbd updated)\n";
     SetVersion ($DBversion);
 }
 
@@ -3193,7 +3193,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 $DBversion = "3.01.00.127";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
        $dbh->do(qq{
-       ALTER TABLE aqbasketgroups ADD 'billingplace' VARCHAR(10) AFTER 'deliverycomment';
+       ALTER TABLE aqbasketgroups ADD billingplace VARCHAR(10) NOT NULL AFTER deliverycomment;
        });
        
     print "Upgrade to $DBversion done (isbd updated)\n";