Browse Source

fix: had to remove a select from migration for Android to migrate.

pull/188/head
Matthew Raymer 4 days ago
parent
commit
69e29ecf85
  1. 8
      src/db-sql/migration.ts

8
src/db-sql/migration.ts

@ -175,14 +175,6 @@ const MIGRATIONS = [
lastUpdated = datetime('now') lastUpdated = datetime('now')
WHERE id = 1 WHERE id = 1
AND EXISTS (SELECT 1 FROM settings WHERE id = 1 AND activeDid IS NOT NULL AND activeDid != ''); AND EXISTS (SELECT 1 FROM settings WHERE id = 1 AND activeDid IS NOT NULL AND activeDid != '');
-- Debug: Log the migration result
SELECT 'DEBUG: ActiveDid migration result' as debug_message,
(SELECT activeDid FROM active_identity WHERE id = 1) as migrated_activeDid,
(SELECT activeDid FROM settings WHERE id = 1) as original_activeDid;
-- Debug: Verify the row was inserted
SELECT 'DEBUG: Row count after insertion' as debug_message, COUNT(*) as row_count FROM active_identity;
`, `,
}, },
]; ];

Loading…
Cancel
Save