Bug 21073: Add new table, schema and classes
[koha.git] / installer / data / mysql / atomicupdate / plugin_methods.perl
1 $DBversion = 'XXX';  # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3
4     $dbh->do(q{
5         CREATE TABLE IF NOT EXISTS plugin_methods (
6           plugin_class varchar(255) NOT NULL,
7           plugin_method varchar(255) NOT NULL,
8           PRIMARY KEY ( `plugin_class` (191), `plugin_method` (191) )
9         ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
10     });
11
12     require Koha::Plugins;
13     Koha::Plugins->new()->InstallPlugins;
14
15     # Always end with this (adjust the bug info)
16     SetVersion( $DBversion );
17     print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
18 }