Closed iwasherefirst2 closed 4 years ago
Overriding migration files is a laravel feature (I wrote it), not a Voyager one, so I'm not sure why that would happen.
My only guess would be autoloaded classes cache. Try a composer dump-autoload
then try again.
Any tips here? I faced the same issue. Clearing autoloaded classes cache didn't help.
As @fletch3555 said overriding migrations is a Laravel feature, not much we can do here.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Description:
I have installed Voyager with a separate user_admin table as described here: https://github.com/the-control-group/voyager/issues/2568
When I try to install my repository on a fresh database and call
php artisan migrate
I get this error:Additional context
Since I use a different user table, I had to overwrite a couple of the voyager migration files. like
2015_01_30_093900_create_voyager_users_table.php
and2016_01_01_000000_add_voyager_user_fields.php
in my folderdatabase/migrations
.Also, I had to create the file
2017_11_26_013050_add_user_role_relationship.php
in my migrations folder and added the following:According to the migration logs the error that table
users
has no fieldrole_id
happens in2017_11_26_013050_add_user_role_relationship.php
. Now it is correct that the tableusers
has norole_id
. Instead this column may be found in the tablevoyager_users
. It looks to me that the migration file is not executed fromdatabase/migrations
but instead fromvendor/tcg/ migrations/2017_11_26_013050_add_user_role_relationship.php
:Why was I able to overwrite the migration file
2015_01_30_093900_create_voyager_users_table.php
from voyager, but I am not able to overwrite2017_11_26_013050_add_user_role_relationship.php
?