Bug 8732: DBRev 20.06.00.027
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:29:50 +0000 (10:29 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 24 Aug 2020 10:30:52 +0000 (12:30 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha.pm
installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeInfo_system_preference.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index d567cca..50a54ad 100644 (file)
--- 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 (file)
index 9af09f3..0000000
+++ /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";
-}
index e98883a..a06a9e7 100755 (executable)
@@ -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/';