Skip to content

Commit

Permalink
Add JournalToOracleTable extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
nicUpchurch authored and droyad committed Dec 17, 2024
1 parent 8cb2925 commit fe5065d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/dbup-oracle/OracleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,19 @@ public static UpgradeEngineBuilder OracleDatabase(IConnectionManager connectionM
builder.WithPreprocessor(new OraclePreprocessor());
return builder;
}

/// <summary>
/// Tracks the list of executed scripts in an Oracle table.
/// </summary>
/// <param name="builder">The builder.</param>
/// <param name="schema">The schema.</param>
/// <param name="table">The table.</param>
/// <returns></returns>
public static UpgradeEngineBuilder JournalToOracleTable(this UpgradeEngineBuilder builder, string schema, string table)
{
builder.Configure(c => c.Journal = new OracleTableJournal(() => c.ConnectionManager, () => c.Log, schema, table));
return builder;
}
}
#pragma warning restore IDE0060 // Remove unused parameter
}

0 comments on commit fe5065d

Please sign in to comment.