Merge pull request #71 from apuc/add_task

drop ForeignKey user_project_user in m211123_082634_change_foreign_ke…
This commit is contained in:
kavalar 2021-11-25 13:13:54 +03:00 committed by GitHub
commit fd384ec957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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->dropForeignKey('project_user_ibfk_user_card', 'project_user');
$this->dropColumn('project_user', 'card_id'); $this->dropColumn('project_user', 'card_id');
$this->addColumn('project_user', 'user_id', $this->integer(11)->notNull()); $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->dropForeignKey('user_project_user', 'project_user');
$this->dropColumn('project_user', 'user_id'); $this->dropColumn('project_user', 'user_id');
$this->addColumn('project_user', 'card_id', $this->integer(11)->notNull()); $this->addColumn('project_user', 'card_id', $this->integer(11)->notNull());
$this->addForeignKey( // $this->addForeignKey(
'project_user_ibfk_user_card', // 'project_user_ibfk_user_card',
'project_user', // 'project_user',
'card_id', // 'card_id',
'user_card', // 'user_card',
'id', // 'id',
'RESTRICT', // 'RESTRICT',
'CASCADE' // 'CASCADE'
); // );
} }
/* /*