mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
force migration to 0.60 first before 0.61 #4132
This commit is contained in:
parent
c1865f8564
commit
4717242dc7
@ -9,8 +9,8 @@ const appInfo = require('./app_info');
|
|||||||
async function migrate() {
|
async function migrate() {
|
||||||
const currentDbVersion = getDbVersion();
|
const currentDbVersion = getDbVersion();
|
||||||
|
|
||||||
if (currentDbVersion < 183) {
|
if (currentDbVersion < 214) {
|
||||||
log.error("Direct migration from your current version is not supported. Please upgrade to the latest v0.47.X first and only then to this version.");
|
log.error("Direct migration from your current version is not supported. Please upgrade to the latest v0.60.X first and only then to this version.");
|
||||||
|
|
||||||
utils.crash();
|
utils.crash();
|
||||||
return;
|
return;
|
||||||
@ -18,9 +18,9 @@ async function migrate() {
|
|||||||
|
|
||||||
// backup before attempting migration
|
// backup before attempting migration
|
||||||
await backupService.backupNow(
|
await backupService.backupNow(
|
||||||
// creating a special backup for versions 0.60.X and older, the changes in 0.61 are major.
|
// creating a special backup for versions 0.60.X, the changes in 0.61 are major.
|
||||||
currentDbVersion < 214
|
currentDbVersion === 214
|
||||||
? `before-migration-v${currentDbVersion}`
|
? `before-migration-v060`
|
||||||
: 'before-migration'
|
: 'before-migration'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user