From daae8b16b6755dc94cc632338dc2247c5e1e3c70 Mon Sep 17 00:00:00 2001 From: iIronside Date: Thu, 25 Nov 2021 13:08:10 +0300 Subject: [PATCH] drop ForeignKey user_project_user in m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_user_table --- ...ser_from_user_card_table_to_user_table.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/console/migrations/m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_user_table.php b/console/migrations/m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_user_table.php index 0ff6477..d2107d6 100644 --- a/console/migrations/m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_user_table.php +++ b/console/migrations/m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_user_table.php @@ -15,7 +15,7 @@ class m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_ $this->dropForeignKey('project_user_ibfk_user_card', 'project_user'); $this->dropColumn('project_user', 'card_id'); $this->addColumn('project_user', 'user_id', $this->integer(11)->notNull()); - $this->addForeignKey('user_project_user', 'project_user', 'user_id', 'user', 'id'); + // $this->addForeignKey('user_project_user', 'project_user', 'user_id', 'user', 'id'); } /** @@ -26,15 +26,15 @@ class m211123_082634_change_foreign_key_in_project_user_from_user_card_table_to_ $this->dropForeignKey('user_project_user', 'project_user'); $this->dropColumn('project_user', 'user_id'); $this->addColumn('project_user', 'card_id', $this->integer(11)->notNull()); - $this->addForeignKey( - 'project_user_ibfk_user_card', - 'project_user', - 'card_id', - 'user_card', - 'id', - 'RESTRICT', - 'CASCADE' - ); +// $this->addForeignKey( +// 'project_user_ibfk_user_card', +// 'project_user', +// 'card_id', +// 'user_card', +// 'id', +// 'RESTRICT', +// 'CASCADE' +// ); } /*