The self-referential FK on entitlement_features.parent_feature_id used nullOnDelete(), which orphaned child features when a parent was deleted. Children that belong to a pool have no meaning without their parent, so cascade deletion is the correct behaviour. Adds a migration that drops and re-creates the FK with cascadeOnDelete(). Fixes #40 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 0001_01_01_000000_create_tenant_tables.php | ||
| 2026_01_26_000000_create_workspace_invitations_table.php | ||
| 2026_01_26_120000_create_usage_alert_history_table.php | ||
| 2026_01_26_140000_create_entitlement_webhooks_tables.php | ||
| 2026_01_26_140000_create_workspace_teams_table.php | ||
| 2026_01_29_000000_add_performance_indexes.php | ||
| 2026_03_24_000000_add_feature_code_foreign_keys.php | ||
| 2026_03_24_000000_cascade_delete_namespaces_on_workspace_delete.php | ||
| 2026_03_24_000000_fix_parent_feature_cascade_delete.php | ||