diff --git a/extensions/tags/migrations/2018_06_27_085300_change_tags_add_foreign_keys.php b/extensions/tags/migrations/2018_06_27_085300_change_tags_add_foreign_keys.php index c79429045..75a4ba28f 100644 --- a/extensions/tags/migrations/2018_06_27_085300_change_tags_add_foreign_keys.php +++ b/extensions/tags/migrations/2018_06_27_085300_change_tags_add_foreign_keys.php @@ -42,7 +42,9 @@ return [ 'down' => function (Builder $schema) { $schema->table('tags', function (Blueprint $table) use ($schema) { - $table->dropForeign(['parent_id', 'last_posted_discussion_id', 'last_posted_user_id']); + $table->dropForeign(['parent_id']); + $table->dropForeign(['last_posted_discussion_id']); + $table->dropForeign(['last_posted_user_id']); Migration::fixIndexNames($schema, $table); }); diff --git a/extensions/tags/migrations/2018_06_27_100200_change_tag_user_add_foreign_keys.php b/extensions/tags/migrations/2018_06_27_100200_change_tag_user_add_foreign_keys.php index ce2d3b225..fd0275fb8 100644 --- a/extensions/tags/migrations/2018_06_27_100200_change_tag_user_add_foreign_keys.php +++ b/extensions/tags/migrations/2018_06_27_100200_change_tag_user_add_foreign_keys.php @@ -37,7 +37,8 @@ return [ 'down' => function (Builder $schema) { $schema->table('tag_user', function (Blueprint $table) use ($schema) { - $table->dropForeign(['tag_id', 'user_id']); + $table->dropForeign(['tag_id']); + $table->dropForeign(['user_id']); Migration::fixIndexNames($schema, $table); }); diff --git a/extensions/tags/migrations/2018_06_27_103100_add_discussion_tag_foreign_keys.php b/extensions/tags/migrations/2018_06_27_103100_add_discussion_tag_foreign_keys.php index 58687c5e7..fdd727a01 100644 --- a/extensions/tags/migrations/2018_06_27_103100_add_discussion_tag_foreign_keys.php +++ b/extensions/tags/migrations/2018_06_27_103100_add_discussion_tag_foreign_keys.php @@ -37,7 +37,8 @@ return [ 'down' => function (Builder $schema) { $schema->table('discussion_tag', function (Blueprint $table) use ($schema) { - $table->dropForeign(['discussion_id', 'tag_id']); + $table->dropForeign(['discussion_id']); + $table->dropForeign(['tag_id']); Migration::fixIndexNames($schema, $table); });