Run correct 1.2.1 migration
This commit is contained in:
parent
01999fcae3
commit
baf1378b45
@ -31,7 +31,7 @@ add_action( 'pterotype_init', function() {
|
||||
\pterotype\schema\run_migrations();
|
||||
\pterotype\actors\initialize_actors();
|
||||
if ( ! empty( ob_get_contents() ) ) {
|
||||
error_log( ob_get_contents() );
|
||||
\error_log( ob_get_contents() );
|
||||
}
|
||||
} );
|
||||
|
||||
|
@ -22,7 +22,7 @@ function run_migrations() {
|
||||
apply_migration( '1.1.0', 'migration_1_1_0' );
|
||||
apply_migration( '1.1.1', 'migration_1_1_1' );
|
||||
apply_migration( '1.2.0', 'migration_1_2_0' );
|
||||
apply_migration( '1.2.1', 'migration_1_2_0' );
|
||||
apply_migration( '1.2.1', 'migration_1_2_1' );
|
||||
update_option( 'pterotype_previously_migrated_version', PTEROTYPE_VERSION );
|
||||
}
|
||||
|
||||
@ -318,15 +318,10 @@ function purge_all_data() {
|
||||
{$pfx}pterotype_blocks, {$pfx}pterotype_shares,
|
||||
{$pfx}pterotype_following, {$pfx}pterotype_followers,
|
||||
{$pfx}pterotype_actor_likes, {$pfx}pterotype_object_likes,
|
||||
{$pfx}pterotype_outbox, {$pfx}pterotype_inbox
|
||||
{$pfx}pterotype_outbox, {$pfx}pterotype_inbox,
|
||||
{$pfx}pterotype_actors, {$pfx}pterotype_objects
|
||||
"
|
||||
) );
|
||||
$wpdb->query( $wpdb->prepare(
|
||||
"DROP TABLE {$pfx}pterotype_actors"
|
||||
) );
|
||||
$wpdb->query( $wpdb->prepare(
|
||||
"DROP TABLE {$pfx}pterotype_objects"
|
||||
) );
|
||||
\delete_option( 'pterotype_previously_migrated_version' );
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user