JosephSilber / bouncer

Laravel Eloquent roles and abilities.
MIT License
3.43k stars 330 forks source link

No migrations when upgrading from 1.0.0-rc.3 #632

Open yuvii opened 1 year ago

yuvii commented 1 year ago

Hi! We're trying to upgrade some old laravel code that has been using bouncer version 1.0.0-rc.3. We're upgrading both the PHP & Laravel version, and when updating to the latest bouncer it complains about missing columns (specifically scope column for assigned_roles but I see there are a lot of other missing too). I tried running the command:

php artisan vendor:publish --tag="bouncer.migrations"

But I'm getting:

No publishable resources for tag [bouncer.migrations].

I'm not really sure what's the purpose of these columns, or how to migrate it correctly (eventually we'll need to migrate a database in production that is active and in use, and we can't lose data). The original migrations were created manually by the previous developers.

lrljoe commented 1 year ago

Did you resolve this? If not reply and I'll give you some pointers.