Skip to content

Commit

Permalink
Correct prior correction - do not reverse data import order. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
chullybun authored Apr 29, 2022
1 parent 32c97af commit 1284dce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Represents the **NuGet** versions.

## v1.0.7
- *Fixed:* Previous version v1.0.6 fix was incorrect; Data import order should not have been reversed. This preivous change has been corrected.

## v1.0.6
- *Fixed:* [Issue 12](https://github.com/Avanade/DbEx/issues/12) fixed. Data import order has been reversed.

Expand Down
2 changes: 1 addition & 1 deletion src/DbEx/DbEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>DbEx</RootNamespace>
<Version>1.0.6</Version>
<Version>1.0.7</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>DbEx Developers</Authors>
<Company>Avanade</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/DbEx/Migration/DatabaseMigratorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private async Task<bool> DatabaseDataAsync()
Logger.LogInformation("{Content}", $" Probing for embedded resources: {string.Join(", ", GetNamespacesWithSuffix($"{DataNamespace}.*.[sql|yaml]", true))}");

var list = new List<(Assembly Assembly, string ResourceName)>();
foreach (var ass in Assemblies.Reverse<Assembly>()) // Reverse order as assumed data builds on earlier (e.g. master needs ref data).
foreach (var ass in Assemblies)
{
foreach (var rn in ass.GetManifestResourceNames().OrderBy(x => x))
{
Expand Down

0 comments on commit 1284dce

Please sign in to comment.