You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything worked fine except the migrations. I would get "nothing to migrate" message.
After looking in the code i found that in ModuleMigrateCommand this path function is used:
protected function getMigrationPath($name)
{
return basename($this->module->getPath()) . "/{$name}/database/migrations/";
}
This ofcourse returns:"modules/[Modulename]/database/migrations/"
And this command would be executed: "php artisan migrate --path="modules/[Modulename]/database/migrations/"" Which searches for migrations in a folder that does not exist.
I have currently fixed it with the following code until this issue is resolved.
For my project i wanted to place the modules inside the app folder.
I changed the paths config to:
Everything worked fine except the migrations. I would get "nothing to migrate" message.
After looking in the code i found that in ModuleMigrateCommand this path function is used:
This ofcourse returns:
"modules/[Modulename]/database/migrations/"
And this command would be executed:
"php artisan migrate --path="modules/[Modulename]/database/migrations/""
Which searches for migrations in a folder that does not exist.I have currently fixed it with the following code until this issue is resolved.
The text was updated successfully, but these errors were encountered: