Bug 23148: DBRev 20.06.00.008
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 14:46:19 +0000 (16:46 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 15:25:35 +0000 (17:25 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha.pm
installer/data/mysql/atomicupdate/bug-23148.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 4fbd35d..a2d1cae 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.007";
+$VERSION = "20.06.00.008";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug-23148.perl b/installer/data/mysql/atomicupdate/bug-23148.perl
deleted file mode 100644 (file)
index a97fc4d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    # you can use $dbh here like:
-    $dbh->do( "UPDATE itemtypes SET imageurl = REPLACE (imageurl, '.gif', '.png') WHERE imageurl LIKE 'bridge/%'" );
-
-    # Always end with this (adjust the bug info)
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 23148: Replace Bridge icons with transparent PNG files)\n";
-}
index dde53c9..70dc80e 100755 (executable)
@@ -22329,6 +22329,13 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 22844, "Add borrower_attribute_types.mandatory" );
 }
 
+$DBversion = '20.06.00.008';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do( "UPDATE itemtypes SET imageurl = REPLACE (imageurl, '.gif', '.png') WHERE imageurl LIKE 'bridge/%'" );
+
+    NewVersion( $DBversion, 23148, "Replace Bridge icons with transparent PNG files" );
+}
+
 # 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/';