In this commit, several improvements were made to the MigrationGenerator.php file.
Firstly, changes in generateAllMigration() prevent migration of 'migrations' table as its created automatically during migration process.
Additionally, the logic for generating foreign keys was fixed as the column_name and foreign_column_name are returned as arrays so we should get the first element from that array.
Thank you, @clsmedia for your contribution. Recently I was busy with my office work and could not monitor this issue. If you have any further issues let me know.
In this commit, several improvements were made to the MigrationGenerator.php file. Firstly, changes in generateAllMigration() prevent migration of 'migrations' table as its created automatically during migration process.
Additionally, the logic for generating foreign keys was fixed as the column_name and foreign_column_name are returned as arrays so we should get the first element from that array.