You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Upgrade notes
Run php artisan externa:upgrade (or php artisan migrate) so api_keys.role_id switches from cascadeOnDelete to restrictOnDelete. No row data changes. Rolling back the older owner_id migration is refused: restore a pre-upgrade backup instead.
Fixed
Deleting a role no longer cascades away every API key that still holds it: the admin (and AI) delete paths refuse while any key — active or revoked — references the role, with a translated count; bulk delete skips those roles and reports how many; an additive migration switches api_keys.role_id to restrictOnDelete (#833).