From 5669510d9cd417d61f640fab978a28e9a91c3327 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 17 May 2023 12:24:36 +0200 Subject: [PATCH] Fix migration version check. --- source/migrations/migrations.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/migrations/migrations.ts b/source/migrations/migrations.ts index 88abf47..e3a175c 100644 --- a/source/migrations/migrations.ts +++ b/source/migrations/migrations.ts @@ -100,7 +100,9 @@ export async function runMigrations(): Promise { value: manifest.version, }); - if (manifest.version >= version.value) { + // Only when the current data version is lower than the manifest version + // should the migrations run. + if (version.value >= manifest.version) { return; }