diff --git a/includes/schema.php b/includes/schema.php index f332d68..a8a5739 100644 --- a/includes/schema.php +++ b/includes/schema.php @@ -315,10 +315,12 @@ 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_objects, {$pfx}pterotype_actors + {$pfx}pterotype_outbox, {$pfx}pterotype_inbox " ) ); + $wpdb->query( $wpdb->prepare( + "DROP TABLE {$pfx}pterotype_objects, {$pfx}pterotype_actors" + ) ); \delete_option( 'pterotype_previously_migrated_version' ); } ?>