-2

On the second version of the database structure and the library is different. how to make an update without breaking anything?

spatie/laravel-permission

apokryfos
  • 38,771
  • 9
  • 70
  • 114
Coder
  • 23
  • 8

1 Answers1

1

There are Upgrade instructions in the documentation:
https://github.com/spatie/laravel-permission#upgrading

Jerodev
  • 32,252
  • 11
  • 87
  • 108
  • What part of it isn't working? Please be more specific. – Jerodev Feb 11 '19 at 17:51
  • d'not working migration: // Drop V1 foreign key constraints – Coder Feb 12 '19 at 07:43
  • SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'role_has_permissions_permission_id_foreign'; check that column/key exists (SQL: alter table `role_has_permissions_v1` drop foreign key `role_has_permissions_pe rmission_id_foreign`) – Coder Feb 12 '19 at 07:44