robinNcode / db_craft

DB Craft - CodeIgniter 4 Seeder, Migration Generator
16 stars 4 forks source link

MigrationGenerator file #2

Closed pk-kissdevs closed 7 months ago

pk-kissdevs commented 7 months ago

Robinncode\DbCraft\Libraries throws an error on line 269 due to double quotes. It should change to below: $keyArray[] = '\n\t\t\$this->forge->addForeignKey(\'$key->column_name\',\'$key->foreign_table_name\',\'$key->foreign_column_name\',\CASCADE\',\'CASCADE\');';

FileHandler also throws error if app name is not 'app. Line 76 should change to below: $targetDir = APPPATH . '/Database/Migrations/';

clsmedia commented 7 months ago

👍 $keyArray[] = PHP_EOL . chr(9) . chr(9) . '$this->forge->addForeignKey(\'$key->column_name\',\'$key->foreign_table_name\',\'$key->foreign_column_name\',\'CASCADE\',\'CASCADE\');';