From 0bac48e776aa0983e9ed90f292f8cac40307c67c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 24 Aug 2020 10:29:50 +0000 Subject: [PATCH] Bug 8732: DBRev 20.06.00.027 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_8732_add_BiblioItemtypeInfo_system_preference.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl diff --git a/Koha.pm b/Koha.pm index d567cca7ed..50a54ad105 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 = "20.06.00.026"; +$VERSION = "20.06.00.027"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl b/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl deleted file mode 100644 index 9af09f3d7d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeInfo', '0','Control whether biblio level itemtype image displays','0','YesNo')" ); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 8732: Add new BiblioItemtypeInfo to system preferences)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e98883aeb4..a06a9e7260 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22636,6 +22636,13 @@ if (CheckVersion($DBversion)) { NewVersion( $DBversion, 19036, "Add accountlines.credit_number, account_credit_types.credit_number_enabled and syspref AutoCreditNumber" ); } +$DBversion = '20.06.00.027'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeInfo', '0','Control whether biblio level itemtype image displays','0','YesNo')" ); + + NewVersion( $DBversion, 8732, 'Add new BiblioItemtypeInfo to system preferences' ); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5