Browse Source
- Fix multi-statement SQL execution issue in Capacitor SQLite - Add individual statement execution for migration 004_active_identity_management - Implement automatic recovery for missing active_identity table - Enhance migration system with better error handling and logging Problem: Migration 004 was marked as applied but active_identity table wasn't created due to multi-statement SQL execution failing silently in Capacitor SQLite. Solution: - Extended Migration interface with optional statements array - Modified migration execution to handle individual statements - Added bootstrapping hook recovery for missing tables - Enhanced logging for better debugging Files changed: - src/services/migrationService.ts: Enhanced migration execution logic - src/db-sql/migration.ts: Added recovery mechanism and individual statements This fix ensures the app automatically recovers from the current broken state and prevents similar issues in future migrations.pull/188/head
2 changed files with 127 additions and 12 deletions
Loading…
Reference in new issue