Lines 1-18
Link Here
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
1 |
$DBversion = 'XXX'; |
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
|
3 |
|
4 |
$dbh->do(q{ |
4 |
unless ( TableExists('plugin_methods') ) { |
5 |
CREATE TABLE IF NOT EXISTS plugin_methods ( |
5 |
$dbh->do(q{ |
6 |
plugin_class varchar(255) NOT NULL, |
6 |
CREATE TABLE plugin_methods ( |
7 |
plugin_method varchar(255) NOT NULL, |
7 |
plugin_class varchar(255) NOT NULL, |
8 |
PRIMARY KEY ( `plugin_class` (191), `plugin_method` (191) ) |
8 |
plugin_method varchar(255) NOT NULL, |
9 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
9 |
PRIMARY KEY ( `plugin_class` (191), `plugin_method` (191) ) |
10 |
}); |
10 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
|
|
11 |
}); |
12 |
} |
11 |
|
13 |
|
12 |
require Koha::Plugins; |
14 |
require Koha::Plugins; |
13 |
Koha::Plugins->new()->InstallPlugins; |
15 |
Koha::Plugins->new({ enable_plugins => 1 })->InstallPlugins; |
14 |
|
16 |
|
15 |
# Always end with this (adjust the bug info) |
|
|
16 |
SetVersion( $DBversion ); |
17 |
SetVersion( $DBversion ); |
17 |
print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; |
18 |
print "Upgrade to $DBversion done (Bug 21073 - Improve plugin performance)\n"; |
18 |
} |
19 |
} |
19 |
- |
|
|