mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-25 10:19:04 +02:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
parent
254ba1f089
commit
f73a0cce72
20 changed files with 67 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue