From 8d39d21039d489444b7ed6fa06b03aa87d21f5bd Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 20 Oct 2011 03:19:02 +1300 Subject: [PATCH] Bug 5436, adding updatedatabase.pl --- installer/data/mysql/updatedatabase.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e3309a2d82..ffaccaa84a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4523,6 +4523,12 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.05.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("ALTER TABLE borrower_attribute_types ADD COLUMN display_checkout TINYINT(1) NOT NULL DEFAULT '0';"); + print "Upgrade to $DBversion done (Added a display_checkout field in borrower_attribute_types table)\n"; + SetVersion($DBversion); +} =head1 FUNCTIONS -- 2.39.5