Issue: - Restore operation failed with foreign key constraint violation - Error: "update or delete on table business_scopes violates foreign key constraint" - Problem: DELETE operations didn't handle foreign key dependencies correctly Solution: - Changed DELETE FROM to TRUNCATE TABLE ... CASCADE in _restore_table() - TRUNCATE with CASCADE automatically removes dependent records - Now restore operation properly handles all foreign key relationships - Data can be restored without constraint violations This ensures checkpoint restore works correctly across all related tables. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| middleware | ||
| services | ||
| utils | ||
| __init__.py | ||