From c2a376db26904e30f4eec51e17c976652a0fe8b2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 26 Feb 2018 13:06:15 -0300 Subject: [PATCH] Bug 20074: DBRev 17.12.00.019 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug20074.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug20074.perl diff --git a/Koha.pm b/Koha.pm index 7eb6309918..985be4748b 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 = "17.12.00.018"; +$VERSION = "17.12.00.019"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug20074.perl b/installer/data/mysql/atomicupdate/bug20074.perl deleted file mode 100644 index 941e44bdd4..0000000000 --- a/installer/data/mysql/atomicupdate/bug20074.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q|UPDATE auth_subfield_structure SET hidden=1 WHERE hidden<>0|); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 20074: Auth_subfield_structure changes hidden attribute)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 37573f120b..5c949635dc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15575,6 +15575,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 19290 - Add system preference BrowseResultSelection)\n"; } +$DBversion = '17.12.00.019'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do(q|UPDATE auth_subfield_structure SET hidden=1 WHERE hidden<>0|); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20074 - Auth_subfield_structure changes hidden attribute)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5