File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,12 +147,15 @@ IDataBossMigrationScope GetTargetScope(DataBossConfiguration config) {
147147
148148 private List < IDataBossMigration > GetPendingMigrations ( DataBossConfiguration config ) {
149149 var applied = new HashSet < string > ( GetAppliedMigrations ( config ) . Select ( x => x . FullId ) ) ;
150+ Func < IDataBossMigration , bool > notApplied = x => ! applied . Contains ( x . Info . FullId ) ;
151+
150152 return Flatten ( GetTargetMigration ( config . Migrations ) )
151- . Where ( item => item . HasQueryBatches && ! applied . Contains ( item . Info . FullId ) )
153+ . Where ( item => item . HasQueryBatches )
154+ . Where ( notApplied )
152155 . ToList ( ) ;
153156 }
154157
155- IEnumerable < IDataBossMigration > Flatten ( IDataBossMigration migration ) {
158+ static IEnumerable < IDataBossMigration > Flatten ( IDataBossMigration migration ) {
156159 yield return migration ;
157160 foreach ( var item in migration . GetSubMigrations ( ) . SelectMany ( Flatten ) )
158161 yield return item ;
Original file line number Diff line number Diff line change 11param (
2- [string ]$TargetEnvironment = " Production" ,
32 [Parameter (Mandatory = $true )]
43 [string ]$Build
54)
65
76./ MSBuild.bat DataBoss\DataBoss.sln / t:Clean / p:Configuration= Release / v:m
8- ./ MSBuild.bat Build.proj " /t:Package" " /p:Configuration=Release;Environment= $TargetEnvironment " / p:Build= $Build / v:m
7+ ./ MSBuild.bat Build.proj " /t:Package" " /p:Configuration=Release" / p:Build= $Build / v:m
You can’t perform that action at this time.
0 commit comments