From a0482e417252a0bbd344da31904501a9fa00d5f7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 18 May 2015 11:20:02 -0300 Subject: [PATCH] Bug 8480: DBRev 3.19.00.042 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- installer/data/mysql/updatedatabase.pl | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Koha.pm b/Koha.pm index f60a5b4d7e..646c99a8bd 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "3.19.00.041"; +$VERSION = "3.19.00.042"; sub version { return $VERSION; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2d58cb68ef..70579df642 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10425,7 +10425,7 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } -$DBversion = "3.19.00.XXX"; +$DBversion = "3.19.00.042"; if ( CheckVersion($DBversion) ) { $dbh->do(q{ DELETE ass.* @@ -10435,8 +10435,10 @@ if ( CheckVersion($DBversion) ) { }); $dbh->do(q{ - ALTER TABLE auth_subfield_structure - ADD CONSTRAINT auth_subfield_structure_ibfk_1 FOREIGN KEY (authtypecode) REFERENCES auth_types(authtypecode) ON DELETE CASCADE ON UPDATE CASCADE + ALTER IGNORE TABLE auth_subfield_structure + ADD CONSTRAINT auth_subfield_structure_ibfk_1 + FOREIGN KEY (authtypecode) REFERENCES auth_types(authtypecode) + ON DELETE CASCADE ON UPDATE CASCADE }); print "Upgrade to $DBversion done (Bug 8480: Add foreign key on auth_subfield_structure.authtypecode)\n"; -- 2.39.5