From 3255cdfea69552e3a266c5f642e953022ab5c65f 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 Signed-off-by: Claire Gravely Signed-off-by: Agustin Moyano --- .../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 0000000000..63ef70a1d0 --- /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.11.0