From b2c78a350383a7e1d3833624acfbe8b7531b6393 Mon Sep 17 00:00:00 2001 From: Mohamed Afifi Date: Sat, 24 Aug 2024 19:32:44 -0400 Subject: [PATCH] Fix migration by running only once --- Core/AppMigrator/Sources/AppMigrator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/AppMigrator/Sources/AppMigrator.swift b/Core/AppMigrator/Sources/AppMigrator.swift index c4f8746a..a9c85f0f 100644 --- a/Core/AppMigrator/Sources/AppMigrator.swift +++ b/Core/AppMigrator/Sources/AppMigrator.swift @@ -46,6 +46,7 @@ public final class AppMigrator { public func migrationStatus() -> MigrationStatus { let updaters = versionUpdaters() if updaters.isEmpty { + updater.commitUpdates() return .noMigration } else { let blocksUI = updaters.contains { $0.blocksUI } @@ -66,6 +67,7 @@ public final class AppMigrator { } } } + updater.commitUpdates() } // MARK: Private