updatedatabase - DB version to 043 for 2 new columns in currency table
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 4 Jan 2008 00:20:38 +0000 (18:20 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 4 Jan 2008 02:21:52 +0000 (20:21 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index f61c87a..272fb31 100755 (executable)
@@ -846,6 +846,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.00.00.043";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("ALTER TABLE `currency` ADD `symbol` varchar(5) default NULL, ADD `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP");
+       print "Upgrade to $DBversion done (currency table: add symbol and timestamp columns)\n";
+    SetVersion ($DBversion);
+}
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
index 05a2717..ab6bf2d 100644 (file)
@@ -10,7 +10,7 @@
 use strict;
 
 sub kohaversion {
-    our $VERSION = "3.00.00.042";
+    our $VERSION = "3.00.00.043";
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install