mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
19 lines
553 B
C#
19 lines
553 B
C#
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;
|
|
}
|
|
} |