From 654cdd41740238d335ec5599526a24be88b14d22 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 2 May 2023 09:37:11 +0200 Subject: [PATCH] Update includes/class-migration.php Co-authored-by: Alex Kirk --- includes/class-migration.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/class-migration.php b/includes/class-migration.php index b65ed90..74e6ee2 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -37,10 +37,12 @@ class Migration { $version_from_db = self::get_version(); - if ( version_compare( $version_from_db, '1.0.0', '<' ) ) { - self::migrate_from_0_17(); + if ( version_compare( $version_from_db, '0.16.0', '<' ) ) { self::migrate_from_0_16(); } + if ( version_compare( $version_from_db, '0.17.0', '<' ) ) { + self::migrate_from_0_17(); + } update_option( 'activitypub_db_version', self::get_target_version() ); }