From 674a330e2d115471182674e42a6a806b0544e45f Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 28 Dec 2018 17:52:18 +0100 Subject: [PATCH] Bug 22053: update database Rebased-on: 2019-03-25 Alex Arnaud --- .../mysql/atomicupdate/bug_22053_enable-all-plugins.perl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl diff --git a/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl b/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl new file mode 100644 index 0000000..63ef70a --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl @@ -0,0 +1,14 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + + use Koha::Plugins; + + my @plugins = Koha::Plugins->new()->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"; +} \ No newline at end of file -- 2.7.4