From e1b444f252d775ffaf537aa6d56fdb3acac34638 Mon Sep 17 00:00:00 2001 From: xadyz1 Date: Sun, 26 Jul 2026 13:12:02 +0100 Subject: [PATCH] 1 --- server/db/database.js | 7 ++++--- server/db/remote_display.db-client_wal_index | Bin 32 -> 32 bytes 2 files changed, 4 insertions(+), 3 deletions(-) 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 79d8c913095187a18160ef5fc65de2958e668338..e3cc2a840c30ca63ba6d308480360933018e9bc0 100644 GIT binary patch literal 32 ccmcbvsLU#6F?(i>88