Updating Version Number to 3.02.01.002
authorChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 14 Dec 2010 03:16:12 +0000 (22:16 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 14 Dec 2010 03:16:12 +0000 (22:16 -0500)
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 574d3ae..0f7bb82 100755 (executable)
@@ -3882,6 +3882,15 @@ VALUES
     SetVersion ($DBversion);
 };
 
+$DBversion = '3.02.01.002';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("ALTER TABLE deletedborrowers ADD `privacy` int(11) AFTER smsalertnumber;");
+    $dbh->do("ALTER TABLE deletedborrowers CHANGE `cardnumber` `cardnumber` varchar(16);");
+    print "Upgrade to $DBversion done (Fix differences between borrowers and deletedborrowers)\n";
+    SetVersion ($DBversion);
+}
+
+
 =head1 FUNCTIONS
 
 =head2 DropAllForeignKeys($table)
index f5d0afc..079b313 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.02.01.001';
+    our $VERSION = '3.02.01.002';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install