-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved same properties in options to single base class
- Loading branch information
1 parent
15d613d
commit 2ec5ba3
Showing
4 changed files
with
27 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/PostgreSQL.Migrations.Console/Options/DatabaseAdjustments.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using CommandLine; | ||
|
||
namespace PostgreSQL.Migrations.Console.Options { | ||
|
||
/// <summary> | ||
/// Database adjustments. | ||
/// </summary> | ||
public class DatabaseAdjustments { | ||
|
||
[Option ( 'f', "files", Required = true, HelpText = "List of files containing migrations." )] | ||
public IEnumerable<string> Files { get; set; } = Enumerable.Empty<string> (); | ||
|
||
[Option ( 'c', "connectionStrings", Required = true, HelpText = "List of connection strings to which migrations will be applied." )] | ||
public IEnumerable<string> ConnectionStrings { get; set; } = Enumerable.Empty<string> (); | ||
|
||
[Option ( 's', "strategy", Default = "MigrationResolverAttribute", HelpText = "Select strategy for read migrations." )] | ||
public string Strategy { get; set; } = ""; | ||
|
||
[Option ( 'g', "group", HelpText = "If you specify some group or groups (separated by commas), migrations will be filtered by these groups." )] | ||
public string Group { get; set; } = ""; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters