diff --git a/extensions/mentions/migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php b/extensions/mentions/migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php index 09d729079..8018523a2 100644 --- a/extensions/mentions/migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php +++ b/extensions/mentions/migrations/2018_06_27_102300_change_post_mentions_post_add_foreign_keys.php @@ -37,7 +37,8 @@ return [ 'down' => function (Builder $schema) { $schema->table('posts_mentions_posts', function (Blueprint $table) use ($schema) { - $table->dropForeign(['post_id', 'mentions_post_id']); + $table->dropForeign(['post_id']); + $table->dropForeign(['mentions_post_id']); Migration::fixIndexNames($schema, $table); }); diff --git a/extensions/mentions/migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php b/extensions/mentions/migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php index 0f0491867..339fae43f 100644 --- a/extensions/mentions/migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php +++ b/extensions/mentions/migrations/2018_06_27_102500_change_post_mentions_user_add_foreign_keys.php @@ -37,7 +37,8 @@ return [ 'down' => function (Builder $schema) { $schema->table('post_mentions_user', function (Blueprint $table) use ($schema) { - $table->dropForeign(['post_id', 'mentions_user_id']); + $table->dropForeign(['post_id']); + $table->dropForeign(['mentions_user_id']); Migration::fixIndexNames($schema, $table); });