Run correct 1.2.1 migration

This commit is contained in:
Jeremy Dormitzer 2018-11-04 07:45:12 -05:00
parent 01999fcae3
commit baf1378b45
2 changed files with 4 additions and 9 deletions

View File

@ -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() );
}
} );

View File

@ -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' );
}
?>