Migrate spark with Foreigner key table show (Can't create table `fk`.`employees` (err |
Hi guys, I recently faced this issue I normally create my foreigner key table in the same migration file but now have decided to make two separate migration files unfortunately get this error in the spark command (Can't create table `fk`.`employees` (errno: 150 "Foreign key constraint is incorrectly formed")
The question does CI 4 spark command not accept two different migration files? Spark command it does not accept two different files like: 1.class CreateEmployeesTable extends Migration 2class CreateDepartmentsTable extends Migration It accepts only one file PHP Code: <?php Do Codeigniter Before Do You!
yekrinaDigitals
You can't add ForeignKey to existing tables with Forge.
The feature will be provided in v4.3.0. See https://github.com/codeigniter4/CodeIgni...ssues/4814 (11-06-2022, 02:55 PM)kenjis Wrote: You can't add ForeignKey to existing tables with Forge. [email protected]kenjis Do Codeigniter Before Do You!
yekrinaDigitals
|
Welcome Guest, Not a member yet? Register Sign In |