Skip to content

Commit

Permalink
Fixes #1689. BREAKING CHANGE: RunnerOptions.IncludeUntaggedMaintenanc…
Browse files Browse the repository at this point in the history
…eMigratrions will now default to true
  • Loading branch information
jzabroski committed Nov 25, 2023
1 parent 3175e52 commit 4327993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -38,9 +38,7 @@ private static void RunWithServices(DatabaseConfiguration dbConfig)
#endif
.AddSQLite()
.WithGlobalConnectionString(dbConfig.ConnectionString)
// NOTE: For now, recommend using For.All() instead of .For.Migrations() if using Maintenance Migrations
// https://github.com/fluentmigrator/fluentmigrator/issues/1062#issuecomment-616598419
.ScanIn(typeof(AddGTDTables).Assembly).For.All())
.ScanIn(typeof(AddGTDTables).Assembly).For.Migrations())
.Configure<SelectingProcessorAccessorOptions>(
opt => opt.ProcessorId = dbConfig.ProcessorId)
.BuildServiceProvider();
Expand Down
Expand Up @@ -111,7 +111,7 @@ public RunnerOptions(IRunnerContext runnerContext)
/// <summary>
/// Gets or sets a value indicating whether untagged maintenance items should always be loaded/executed.
/// </summary>
public bool IncludeUntaggedMaintenances { get; set; }
public bool IncludeUntaggedMaintenances { get; set; } = true;

/// <summary>
/// Gets or sets a value indicating whether untagged migrations should always be loaded/executed.
Expand Down

0 comments on commit 4327993

Please sign in to comment.