From 3d627c382319ecd2be731407964c4d98277ea2d0 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 27 Jul 2020 16:03:12 +0000 Subject: [PATCH] Bug 23148: DBRev 20.05.02.002 Signed-off-by: Lucas Gass --- 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 d35ecd49fe..8383f10cbb 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.05.02.001"; +$VERSION = "20.05.02.002"; 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 793f3da67d..8d058ae6ba 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22234,6 +22234,13 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 24379, "Set login_attempts NOT NULL" ); } +$DBversion = '20.05.02.002'; +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.39.5