Bug 21073: DBRev 19.06.00.006

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2019-06-18 17:23:15 +01:00
parent 3175eebdfc
commit c13eb384b3
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
4 changed files with 22 additions and 21 deletions

View File

@ -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 = "19.06.00.005";
$VERSION = "19.06.00.006";
sub version {
return $VERSION;

View File

@ -1,19 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
unless ( TableExists('plugin_methods') ) {
$dbh->do(q{
CREATE TABLE plugin_methods (
plugin_class varchar(255) NOT NULL,
plugin_method varchar(255) NOT NULL,
PRIMARY KEY ( `plugin_class` (191), `plugin_method` (191) )
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
});
}
require Koha::Plugins;
Koha::Plugins->new({ enable_plugins => 1 })->InstallPlugins;
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 21073 - Improve plugin performance)\n";
}

View File

@ -3536,7 +3536,7 @@ CREATE TABLE patron_consent (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table 'plugin_data'
-- Table structure for table 'plugin_methods'
--
DROP TABLE IF EXISTS plugin_methods;

View File

@ -18741,6 +18741,26 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 9834 - Add the reserves.item_level_hold column)\n";
}
$DBversion = '19.06.00.006';
if( CheckVersion( $DBversion ) ) {
unless ( TableExists('plugin_methods') ) {
$dbh->do(q{
CREATE TABLE plugin_methods (
plugin_class varchar(255) NOT NULL,
plugin_method varchar(255) NOT NULL,
PRIMARY KEY ( `plugin_class` (191), `plugin_method` (191) )
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
});
}
require Koha::Plugins;
Koha::Plugins->new({ enable_plugins => 1 })->InstallPlugins;
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 21073 - Improve plugin performance)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';