Browse Source
- Consolidate migrations 004, 005, and 006 into single 004_active_identity_management - Remove redundant migrations 005 (constraint_fix) and 006 (settings_cleanup) - Implement security-first approach with ON DELETE RESTRICT constraint from start - Include comprehensive data migration from settings.activeDid to active_identity.activeDid - Add proper cleanup of orphaned settings records and legacy activeDid values - Update migrationService.ts validation logic to reflect consolidated structure - Fix migration name references and enhance validation for hasBackedUpSeed column - Reduce migration complexity from 3 separate operations to 1 atomic operation - Maintain data integrity with foreign key constraints and performance indexes Migration successfully tested on web platform with no data loss or corruption. Active DID properly migrated: did:ethr:0xCA26A3959D32D2eB5459cE08203DbC4e62e79F5D Files changed: - src/db-sql/migration.ts: Consolidated 3 migrations into 1 (-46 lines) - src/services/migrationService.ts: Updated validation logic (+13 lines)pull/188/head
2 changed files with 23 additions and 46 deletions
Loading…
Reference in new issue