Update includes/class-migration.php
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
parent
725fc0cecd
commit
654cdd4174
1 changed files with 4 additions and 2 deletions
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue