diff --git a/server/db/database.js b/server/db/database.js index 097081a..1bb09b1 100644 --- a/server/db/database.js +++ b/server/db/database.js @@ -57,12 +57,13 @@ function ensureMultitenancyMigration() { console.warn(`[boot] Pre-migration snapshot: ${snapshotPath}`); } catch (e) { console.error(`[boot] Snapshot failed: ${e.message}`); - process.exit(1); + if (!e.message.includes('Sqlite3UnsupportedStatement')) process.exit(1); } try { const { runMigration } = require('../../scripts/migrate-multitenancy'); runMigration({ db }); + if (dbOptions.syncUrl) db.sync(); console.warn('[boot] Migration complete, continuing startup'); } catch (e) { console.error(`[boot] Migration FAILED: ${e.message}`); @@ -781,7 +782,7 @@ function backfillPlaylistItemsZoneId() { console.warn(`[zone-id backfill] Pre-migration snapshot: ${snapshotPath}`); } catch (e) { console.error(`[zone-id backfill] Snapshot failed: ${e.message}`); - process.exit(1); + if (!e.message.includes('Sqlite3UnsupportedStatement')) process.exit(1); } try { @@ -877,7 +878,7 @@ const { applyTenantDeleteCascade } = require('../lib/tenant-cascade-migration'); snapped = true; } catch (e) { console.error(`[tenant-cascade] Snapshot failed: ${e.message}`); - process.exit(1); + if (!e.message.includes('Sqlite3UnsupportedStatement')) process.exit(1); } try { diff --git a/server/db/remote_display.db-client_wal_index b/server/db/remote_display.db-client_wal_index index 79d8c91..e3cc2a8 100644 Binary files a/server/db/remote_display.db-client_wal_index and b/server/db/remote_display.db-client_wal_index differ