From 614e5e431cf9b42f863ff253df7ede1237867cc4 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 19 Feb 2022 00:14:37 +0200 Subject: [PATCH] migration fix --- Notes.txt | 2 +- .../NDB.Infrastructure.DatabaseMigration.csproj | 2 +- .../Services/MigrationService.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Notes.txt b/Notes.txt index 75fa1fb..3ef2240 100644 --- a/Notes.txt +++ b/Notes.txt @@ -26,5 +26,5 @@ dotnet nuget push NDB.Security.Authentication.Identity.1.0.7.nupkg -k ***REMOVED dotnet nuget push NDB.Extensions.Caching.1.0.1.nupkg -k ***REMOVED*** -s http://stawebsrv:8081/NuGetServer/nuget -dotnet nuget push NDB.Infrastructure.DatabaseMigration.1.1.1.nupkg -k ***REMOVED*** -s https://toodle.ddns.net/public-nuget-server/nuget +dotnet nuget push NDB.Infrastructure.DatabaseMigration.1.1.3.nupkg -k ***REMOVED*** -s https://toodle.ddns.net/public-nuget-server/nuget ####################################################################################################################################################### \ No newline at end of file diff --git a/infrastructure/NDB.Infrastructure.DatabaseMigration/NDB.Infrastructure.DatabaseMigration.csproj b/infrastructure/NDB.Infrastructure.DatabaseMigration/NDB.Infrastructure.DatabaseMigration.csproj index 9e0bc3d..91b3e9e 100644 --- a/infrastructure/NDB.Infrastructure.DatabaseMigration/NDB.Infrastructure.DatabaseMigration.csproj +++ b/infrastructure/NDB.Infrastructure.DatabaseMigration/NDB.Infrastructure.DatabaseMigration.csproj @@ -7,7 +7,7 @@ https://dev.azure.com/tstanciu94/NDB Git NDB Database migration - 1.1.1 + 1.1.3 1.1.0: From this version the migration service can keep its metadata in the database (SqlServer or Sqlite) diff --git a/infrastructure/NDB.Infrastructure.DatabaseMigration/Services/MigrationService.cs b/infrastructure/NDB.Infrastructure.DatabaseMigration/Services/MigrationService.cs index 3a5b079..ef3dc0b 100644 --- a/infrastructure/NDB.Infrastructure.DatabaseMigration/Services/MigrationService.cs +++ b/infrastructure/NDB.Infrastructure.DatabaseMigration/Services/MigrationService.cs @@ -59,6 +59,7 @@ namespace NDB.Infrastructure.DatabaseMigration.Services _logger.LogInformation($"Running script pack '{pack.Version}' with {scripts.Length} scripts:"); + scripts = scripts.OrderBy(f => f).ToArray(); foreach (var script in scripts) await RunScript(script);