Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 591 forks source link

file_put_contents(C:\Users\kadhem\Documents\DBMigrations\migrationDb\database/migrations/*.php): failed to open stream #182

Closed hadrumkadhemkilani closed 5 years ago

hadrumkadhemkilani commented 5 years ago

OS : Windows 10 Laravel 5.7 database :postgresql

when i run php artisan migrate:generate the list of tables appear but after the Do you want to log these migrations in the migrations table? [Y/n] : and the Next Batch Number is: 1. We recommend using Batch Number 0 so that it becomes the "first" migration [Default: 0] : i had this error : ErrorException : file_put_contents(C:\Users\kadhem\Documents\DBMigrations\migrationDb\database/migrations/2019_02_27_124348_create_dbo."allDns"_table.php): failed to open stream: No such file or directory solution ??

hadrumkadhemkilani commented 5 years ago

I solved the problem , my data base is postgresql so the name of tables starting with a camel case so the generator add the "" in begin of the path and this causes a error so i changed all the name and now it s work