Commit 867d3576 authored by Michael Iseard's avatar Michael Iseard Committed by Michael Iseard
Browse files

Change order of version migrations

parent 3865659f
......@@ -41,6 +41,21 @@ class ActivatorService {
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.2.0', '<' ) ) {
$link = Settings::get_setting( 'privacy_link' );
Settings::remove_setting( 'subscription_enabled' );
if ( $link ) {
Settings::update_setting( 'terms_link', $link );
Settings::remove_setting( 'privacy_link' );
}
}
if ( version_compare( $old_version, '2.3.0', '<' ) ) {
global $wpdb;
......@@ -64,21 +79,6 @@ class ActivatorService {
}
}
if ( version_compare( $old_version, '2.2.0', '<' ) ) {
$link = Settings::get_setting( 'privacy_link' );
Settings::remove_setting( 'subscription_enabled' );
if ( $link ) {
Settings::update_setting( 'terms_link', $link );
Settings::remove_setting( 'privacy_link' );
}
}
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' );
}
}
self::create_donors_table();
......
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