[Koha-patches] [PATCH] bug 3440 followup: tweak updatedatabase.pl

Galen Charlton gmcharlt at gmail.com
Sat Aug 1 15:58:55 CEST 2009


[1] Removed POD: not a bad idea, but if we do it,
    there should be more substance to the messages
[2] Improved description of change
[3] Removed extra 'my' qualifier.
---
 installer/data/mysql/updatedatabase.pl |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index ea126f8..d6ccd0a 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2467,13 +2467,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     print "Upgrade to $DBversion done (added FilterBeforeOverdueReport syspref and new index on authorised_values)\n";
 }
 
-=item
-
-    Deal with branches
-
-=cut
-
-my $DBversion = "3.01.00.038";
+$DBversion = "3.01.00.038";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     # update branches table
     # 
@@ -2482,7 +2476,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     $dbh->do("ALTER TABLE branches ADD `branchcountry` text AFTER `branchcity`");
     $dbh->do("ALTER TABLE branches ADD `branchurl` mediumtext AFTER `branchemail`");
     $dbh->do("ALTER TABLE branches ADD `branchnotes` mediumtext AFTER `branchprinter`");
-    print "Upgrade to $DBversion done (branches)\n";
+    print "Upgrade to $DBversion done (add ZIP, city, country, URL, and notes column to branches)\n";
     SetVersion ($DBversion);
 }
 
-- 
1.5.6.5



More information about the Koha-patches mailing list