From 629b2723cb3c654c57e1db2ab206ea163128ccbb Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 9 May 2019 19:29:44 +0000 Subject: [PATCH] Bug 22053: DBRev 18.12.00.069 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_22053_enable-all-plugins.perl | 14 -------------- installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl diff --git a/Koha.pm b/Koha.pm index eb95720b14..6740d5dcf1 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 = "18.12.00.068"; +$VERSION = "18.12.00.069"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl b/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl deleted file mode 100644 index 206ed6f5ce..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl +++ /dev/null @@ -1,14 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - use Koha::Plugins; - - my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins({ all => 1 }); - foreach my $plugin ( @plugins ) { - $plugin->enable; - } - - # Always end with this (adjust the bug info) - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 22053 - enable all plugins)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b3f7da7e02..9b93094b89 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -18432,6 +18432,21 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 7088: Cannot renew items on hold even with override)\n"; } +$DBversion = '18.12.00.069'; +if( CheckVersion( $DBversion ) ) { + + use Koha::Plugins; + + my @plugins = Koha::Plugins->new({ enable_plugins => 1 })->GetPlugins({ all => 1 }); + foreach my $plugin ( @plugins ) { + $plugin->enable; + } + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 22053 - enable all plugins)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5