Question : cakephp 3 make migration
Answered by : milad-heidari
bin/cake migrations create MyCustomMigration
Source : | Last Update : Wed, 27 Apr 22
Question : cakephp 3 migrations foreign key
Answered by : milad-heidari
$table->addIndex(['user_id']);
$table->addForeignKey('user_id', 'users', 'id');
Source : | Last Update : Wed, 27 Apr 22