Removed status foreign key from achievement table

This commit is contained in:
Korzinkayablok 2021-09-09 10:29:09 +03:00
parent 3885f8771b
commit 0dbb05ee8e

View File

@ -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(),