Last active
November 22, 2021 14:02
-
-
Save DamianMac/28953ebc60157d43f197 to your computer and use it in GitHub Desktop.
DbUp Config to exec all stored procedure scripts from a directory
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
var upgrader = | |
DeployChanges.To | |
.SqlDatabase(connectionString) | |
.JournalTo(new NullJournal()) //means the execution won't get logged, so each script is run each time | |
.WithScriptsFromFileSystem("D:\\mystoredprocs\\") | |
.LogToConsole() | |
.Build(); | |
var result = upgrader.PerformUpgrade(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment