mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
test(server): don't do automatic backup if migrating database
This commit is contained in:
parent
c538b54947
commit
86689896a1
@ -25,10 +25,12 @@ async function migrate() {
|
||||
}
|
||||
|
||||
// backup before attempting migration
|
||||
await backupService.backupNow(
|
||||
// creating a special backup for version 0.60.4, the changes in 0.61 are major.
|
||||
currentDbVersion === 214 ? `before-migration-v060` : "before-migration"
|
||||
);
|
||||
if (!process.env.TRILIUM_INTEGRATION_TEST) {
|
||||
await backupService.backupNow(
|
||||
// creating a special backup for version 0.60.4, the changes in 0.61 are major.
|
||||
currentDbVersion === 214 ? `before-migration-v060` : "before-migration"
|
||||
);
|
||||
}
|
||||
|
||||
const migrations = await prepareMigrations(currentDbVersion);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user