changing biblioitems.itemtype to varchar(10)
authorMason James <mtj@liblime.com>
Fri, 9 Nov 2007 22:58:41 +0000 (16:58 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 11 Nov 2007 18:44:25 +0000 (12:44 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
updater/updatedatabase

index 6a63659..cae90ee 100755 (executable)
@@ -568,6 +568,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.00.00.024";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("ALTER TABLE biblioitems CHANGE  itemtype itemtype VARCHAR(10)");
+    print "Upgrade to $DBversion done (changing itemtype to (10))\n";
+    SetVersion ($DBversion);
+}
+
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table