Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cakephp 3 migrations foreign key

$table->addIndex(['user_id']);
$table->addForeignKey('user_id', 'users', 'id');
 
PREVIOUS NEXT
Tagged: #cakephp #migrations #foreign #key
ADD COMMENT
Topic
Name
4+7 =