Added item.enumchron column, and framework map to 952h.
authorMason James <mtj@liblime.com>
Wed, 20 Feb 2008 18:43:27 +0000 (07:43 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 21 Feb 2008 02:12:17 +0000 (20:12 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/updatedatabase.pl

index 6600cc6..3b4f03f 100755 (executable)
@@ -1028,6 +1028,15 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.00.00.056";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+
+    $dbh->do("INSERT INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value` , `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES ('952', 'h', 'Serial Enumeration / chronology','Serial Enumeration / chronology', 0, 0, 'items.enumchron', 10, '', '', '', 0, 0, '', '', '', NULL) ");
+    $dbh->do("ALTER TABLE `items` ADD `enumchron` VARCHAR(80) DEFAULT NULL;");
+    print "Upgrade to $DBversion done ( Added item.enumchron column, and framework map to 952h )\n";
+    SetVersion ($DBversion);
+}
+
 
 =item DropAllForeignKeys($table)