@@ -, +, @@ --- .../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 --- a/installer/data/mysql/atomicupdate/bug_22053_enable-all-plugins.perl +++ a/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"; +} --