php-tenant/Migrations
Claude d2548f7a62
fix: cascade delete child features when parent is removed
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>
2026-03-24 13:11:34 +00:00
..
0001_01_01_000000_create_tenant_tables.php fix: namespace to Core\Mod\Tenant, restructure package 2026-01-27 00:58:42 +00:00
2026_01_26_000000_create_workspace_invitations_table.php fix: namespace to Core\Mod\Tenant, restructure package 2026-01-27 00:58:42 +00:00
2026_01_26_120000_create_usage_alert_history_table.php fix: namespace to Core\Mod\Tenant, restructure package 2026-01-27 00:58:42 +00:00
2026_01_26_140000_create_entitlement_webhooks_tables.php fix: namespace to Core\Mod\Tenant, restructure package 2026-01-27 00:58:42 +00:00
2026_01_26_140000_create_workspace_teams_table.php fix: namespace to Core\Mod\Tenant, restructure package 2026-01-27 00:58:42 +00:00
2026_01_29_000000_add_performance_indexes.php perf: add database indexes for common queries (P2-024) 2026-01-29 16:17:06 +00:00
2026_03_24_000000_add_feature_code_foreign_keys.php fix: add FK constraints on feature_code columns to entitlement_features 2026-03-24 13:11:34 +00:00
2026_03_24_000000_cascade_delete_namespaces_on_workspace_delete.php fix: cascade delete namespaces when workspace is removed 2026-03-24 13:11:29 +00:00
2026_03_24_000000_fix_parent_feature_cascade_delete.php fix: cascade delete child features when parent is removed 2026-03-24 13:11:34 +00:00