On the second version of the database structure and the library is different. how to make an update without breaking anything?
spatie/laravel-permission
There are Upgrade instructions in the documentation: https://github.com/spatie/laravel-permission#upgrading