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
It seems wn:resources doesn't check to see if a create file for the resource's table already exists. When combined with the automatic migration attempt, this results in a cannot redeclare class error, which kills the migration.
Steps to reproduce:
Create a resource using the single wn:resource command.
Create resources (including the previously-created resource) with a file and the wn:resources command.
Expected actions would probably be to look for that class name and one of:
Adjust the name of the incoming generated class so as to not collide
Overwrite the found class file (probably not recommended in most cases, but may be useful with the --force switch)
Not create a migration file for that resource (or better yet, create an update migration with the changes from the existing schema)
The text was updated successfully, but these errors were encountered:
davidporos92
added a commit
to davidporos92/lumen-generators
that referenced
this issue
Oct 20, 2017
It seems
wn:resources
doesn't check to see if a create file for the resource's table already exists. When combined with the automatic migration attempt, this results in acannot redeclare class
error, which kills the migration.Steps to reproduce:
wn:resource
command.wn:resources
command.Expected actions would probably be to look for that class name and one of:
--force
switch)The text was updated successfully, but these errors were encountered: