From 92040cf563198e544ed9df99f8274ef975db12a7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Jul 2020 16:46:19 +0200 Subject: [PATCH] Bug 23148: DBRev 20.06.00.008 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug-23148.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug-23148.perl diff --git a/Koha.pm b/Koha.pm index 4fbd35d4ab..a2d1cae5fd 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.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 index a97fc4dfe8..0000000000 --- a/installer/data/mysql/atomicupdate/bug-23148.perl +++ /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"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index dde53c97f2..70dc80e076 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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/'; -- 2.11.4.GIT