Upgrading from v5 to v6 #2532
-
Hi guys, I'm struggling to make a migration file to upgrade from v5 to v6. I think there are some changes in the table itself, but I'm not sure what is change so I don't know how to make the new migration |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Found the issue, I don't think there are any changes in the tables themselves. I found error on my test suite because the old migration using To solve the issue, just remove the |
Beta Was this translation helpful? Give feedback.
Found the issue, I don't think there are any changes in the tables themselves. I found error on my test suite because the old migration using
PermissionRegistrar
to getpivotRole
andpivotPermission
field from the config.To solve the issue, just remove the
PermissionRegistrar
and call thepivotRole
orpivotPermission
directly just like inlaravel-permission/database/migrations/create_permission_tables.php.stub
Lines 17 to 18 in 30051d6