From fabe0a4e1910b5da34bb429c87bfdf99b2fd061e Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 15 Oct 2009 15:46:10 +0200 Subject: [PATCH] Add missing opac authorised values column --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index f6c1b4205e..fc46f61428 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3071,6 +3071,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { print "Upgrade to $DBversion done (intranetbookbag syspref added)\n"; SetVersion ($DBversion); } +$DBversion = "3.01.00.117"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do( qq# ALTER TABLE authorised_values ADD COLUMN `lib_opac` VARCHAR(80) default NULL AFTER `lib` #); + + print "Upgrade to $DBversion done (opac authorised values added)\n"; + SetVersion ($DBversion); +} =item DropAllForeignKeys($table) -- 2.39.5