Fix FK violations when pruning stale routes #32
Reference in New Issue
Block a user
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DELETE FROM routesbypasses ORM-level cascades, causing FK violations onroute_encountersandboss_battlesroute_encountersand nullifyboss_battle.after_route_idbefore deleting stale routesTest plan
python -m app.seeds --pruneagainst a database with stale routes and verify it completes without FK errors