From 8a147b02771a3da15abb766960cb4da14c019666 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sat, 23 Jan 2021 00:26:23 -0500 Subject: [PATCH] clean up --- src/DataAccessLayers/BirdsiteLive.DAL/DatabaseInitializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataAccessLayers/BirdsiteLive.DAL/DatabaseInitializer.cs b/src/DataAccessLayers/BirdsiteLive.DAL/DatabaseInitializer.cs index 2a5f60d..39e1e84 100644 --- a/src/DataAccessLayers/BirdsiteLive.DAL/DatabaseInitializer.cs +++ b/src/DataAccessLayers/BirdsiteLive.DAL/DatabaseInitializer.cs @@ -29,11 +29,11 @@ namespace BirdsiteLive.DAL if (currentVersion == mandatoryVersion) return; // Init Db - var migrationPatterns = _dbInitializerDal.GetMigrationPatterns(); if (currentVersion == null) currentVersion = await _dbInitializerDal.InitDbAsync(); // Migrate Db + var migrationPatterns = _dbInitializerDal.GetMigrationPatterns(); while (migrationPatterns.Any(x => x.Item1 == currentVersion)) { var migration = migrationPatterns.First(x => x.Item1 == currentVersion);