@@ -, +, @@ - On a clean 18.11.x, install a plugin [1] - Run: $ sudo koha-mysql kohadev > SELECT * FROM plugin_data; - Checkout latest master, restart all the things - Run: $ updatedatabase - Run: $ sudo koha-mysql kohadev > SELECT * FROM plugin_data; - Apply the patch - Run: $ updatedatabase - Run: $ sudo koha-mysql kohadev > SELECT * FROM plugin_data; - Sign off :-D --- installer/data/mysql/updatedatabase.pl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -18435,12 +18435,16 @@ if ( CheckVersion($DBversion) ) { $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; - } + $dbh->do(q{ + INSERT INTO plugin_data + (plugin_class, plugin_key, plugin_value) + SELECT + plugin_class, + '__ENABLED__', + 1 + FROM plugin_data + WHERE plugin_key='__INSTALLED_VERSION__' + }); # Always end with this (adjust the bug info) SetVersion( $DBversion ); --