From: Jonathan Druart Date: Mon, 24 Aug 2020 10:29:50 +0000 (+0000) Subject: Bug 8732: DBRev 20.06.00.027 X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=0bac48e776aa0983e9ed90f292f8cac40307c67c Bug 8732: DBRev 20.06.00.027 Signed-off-by: Jonathan Druart --- diff --git a/Koha.pm b/Koha.pm index d567cca..50a54ad 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 9af09f3..0000000 --- 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 e98883a..a06a9e7 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/';