Don't violate foreign key constraints on plugin removal

This commit is contained in:
Jeremy Dormitzer 2018-11-03 14:41:49 -04:00
parent 47ef0ed10f
commit 5490ccf219

View File

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