diff --git a/src/lib/server/data/migrations/v0.6.0.ts b/src/lib/server/data/migrations/v0.6.0.ts index 18481ee..553e1bc 100644 --- a/src/lib/server/data/migrations/v0.6.0.ts +++ b/src/lib/server/data/migrations/v0.6.0.ts @@ -9,18 +9,19 @@ */ import { nanoid } from 'nanoid'; -import { moveLocalConfig, updateConfigVersions } from './shared'; +import { moveLocalConfig } from './shared'; import { unsafeLoadLocalConfig } from './unsafeLoad'; import { setLocalConfig } from '../localConfig'; import { authIsSetUp } from '../dataDir'; import semver from 'semver'; +import migrateV061 from './v0.6.1'; export default async function migrate(dataDir: string, privateDataDir: string) { await moveLocalConfig(dataDir, privateDataDir); if (await authIsSetUp()) { await updateLocalConfig(privateDataDir); } - await updateConfigVersions(); + await migrateV061(dataDir, privateDataDir); } async function updateLocalConfig(privateDataDir: string) { diff --git a/src/lib/server/data/migrations/v0.6.1.ts b/src/lib/server/data/migrations/v0.6.1.ts index 25b1f6f..ce596d1 100644 --- a/src/lib/server/data/migrations/v0.6.1.ts +++ b/src/lib/server/data/migrations/v0.6.1.ts @@ -3,6 +3,7 @@ */ import { setLocalConfig } from '../localConfig'; +import { updateConfigVersions } from './shared'; import { unsafeLoadLocalConfig } from './unsafeLoad'; @@ -10,4 +11,5 @@ export default async function migrate(dataDir: string, privateDataDir: string) { const config = await unsafeLoadLocalConfig(privateDataDir) as any; config.allowCloudflareIp = false; await setLocalConfig(config); + await updateConfigVersions(); }