From 0dbb05ee8e01d07ad6fbee10ffb45fcad30972b1 Mon Sep 17 00:00:00 2001 From: Korzinkayablok Date: Thu, 9 Sep 2021 10:29:09 +0300 Subject: [PATCH] Removed status foreign key from achievement table --- ...eate_achievement_table_and_link_table_to_user_card.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/console/migrations/m210908_110644_create_achievement_table_and_link_table_to_user_card.php b/console/migrations/m210908_110644_create_achievement_table_and_link_table_to_user_card.php index 289cd52..4952548 100644 --- a/console/migrations/m210908_110644_create_achievement_table_and_link_table_to_user_card.php +++ b/console/migrations/m210908_110644_create_achievement_table_and_link_table_to_user_card.php @@ -20,14 +20,6 @@ class m210908_110644_create_achievement_table_and_link_table_to_user_card extend 'description' => $this->text(), 'status' => $this->integer()->defaultValue(1), ]); - $this->addForeignKey( - 'fk-achievement-status', - 'achievement', - 'status', - 'status', - 'id', - 'CASCADE' - ); $this->createTable('{{%achievement_user_card}}', [ 'id' => $this->primaryKey(), 'user_card_id' => $this->integer(),