diff --git a/util/Migrator/RerunableSqlTableJournalExtensions.cs b/util/Migrator/RerunableSqlTableJournalExtensions.cs new file mode 100644 index 0000000000..c7f78f6ed2 --- /dev/null +++ b/util/Migrator/RerunableSqlTableJournalExtensions.cs @@ -0,0 +1,19 @@ +using System; +using System.Data; +using System.Data.SqlClient; +using DbUp; +using DbUp.Builder; +using DbUp.Engine.Output; +using DbUp.Engine.Transactions; +using DbUp.SqlServer; + +namespace Bit.Migrator; + +public static class RerunableSqlTableJournalExtensions +{ + public static UpgradeEngineBuilder JournalRerunableToSqlTable(this UpgradeEngineBuilder builder, string schema, string table) + { + builder.Configure(c => c.Journal = new RerunableSqlTableJournal(() => c.ConnectionManager, () => c.Log, schema, table)); + return builder; + } +} \ No newline at end of file