Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule

This commit is contained in:
advplyr 2023-07-09 11:39:15 -05:00
parent 254ba1f089
commit f73a0cce72
20 changed files with 67 additions and 31 deletions

View file

@ -432,7 +432,11 @@ function migrateUsers(oldUsers) {
function migrateSessions(oldSessions) {
for (const oldSession of oldSessions) {
const userId = oldDbIdMap.users[oldSession.userId] || null // Can be null
const userId = oldDbIdMap.users[oldSession.userId]
if (!userId) {
Logger.debug(`[dbMigration] Not migrating playback session ${oldSession.id} because user was not found`)
continue
}
//
// Migrate Device