From fe5065d11a96f4ef7992f7f9191da84042214691 Mon Sep 17 00:00:00 2001 From: nic upchurch Date: Fri, 13 Oct 2023 01:39:15 -0400 Subject: [PATCH] Add JournalToOracleTable extension method --- src/dbup-oracle/OracleExtensions.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/dbup-oracle/OracleExtensions.cs b/src/dbup-oracle/OracleExtensions.cs index fc2def0..75a752f 100644 --- a/src/dbup-oracle/OracleExtensions.cs +++ b/src/dbup-oracle/OracleExtensions.cs @@ -170,6 +170,19 @@ public static UpgradeEngineBuilder OracleDatabase(IConnectionManager connectionM builder.WithPreprocessor(new OraclePreprocessor()); return builder; } + + /// + /// Tracks the list of executed scripts in an Oracle table. + /// + /// The builder. + /// The schema. + /// The table. + /// + 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 }