Commit 1f8c5d44 authored by Michael Iseard's avatar Michael Iseard
Browse files

Remove unused setting '_kudos_action_scheduler' from database

parent c0a4b288
......@@ -42,12 +42,21 @@ class ActivatorService {
self::create_subscriptions_table();
self::set_defaults();
if ( $old_version && version_compare( $old_version, '2.0.4', '<' ) ) {
$logger->info( 'Upgrading to version 2.0.4', [ 'previous_version' => $old_version ] );
$result = UpdateService::sync_campaign_labels();
if ( $result ) {
$logger->info( 'Updated campaign labels from transactions' );
if ( $old_version ) {
if ( version_compare( $old_version, '2.1.1', '<' ) ) {
$logger->info( 'Upgrading to version 2.1.1', [ 'previous_version' => $old_version ] );
Settings::remove_setting('action_scheduler');
}
if ( version_compare( $old_version, '2.0.4', '<' ) ) {
$logger->info( 'Upgrading to version 2.0.4', [ 'previous_version' => $old_version ] );
$result = UpdateService::sync_campaign_labels();
if ( $result ) {
$logger->info( 'Updated campaign labels from transactions' );
}
}
}
$logger->info( 'Kudos Donations plugin activated' );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment