mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-28 11:22:43 +01:00
Migration test force re-create tables
This commit is contained in:
1 parent
c738e35a8c
commit
0f83a292f6
3 files changed
+9
-5
No files matched your search
@@ -178,11 +178,15 @@ async function migrateUsers(oldUsers) {
|
||||
}
|
||||
|
||||
module.exports.migrate = async () => {
|
||||
Logger.info(`[dbMigration3] Starting migration`)
|
||||
Logger.info(`[dbMigration] Starting migration`)
|
||||
|
||||
const data = await oldDbFiles.init()
|
||||
|
||||
const start = Date.now()
|
||||
await migrateLibraries(data.libraries)
|
||||
await migrateLibraryItems(data.libraryItems.slice(0, 10))
|
||||
await migrateLibraryItems(data.libraryItems)
|
||||
await migrateUsers(data.users)
|
||||
const elapsed = Date.now() - start
|
||||
|
||||
Logger.info(`[dbMigration] Migration complete. Elapsed ${Math.round(elapsed / 1000)}s`)
|
||||
}
|
||||
Reference in new issue
Block a user