Beispiel #1
0
        /// <summary>
        /// Records a database upgrade for a database specified in a given connection string.
        /// </summary>
        /// <param name="script">The script.</param>
        /// <param name="dbCommandFactory"></param>
        public override void StoreExecutedScript(DbUp.Engine.SqlScript script, Func <IDbCommand> dbCommandFactory)
        {
            EnsureTableExistsAndIsLatestVersion(dbCommandFactory);
            var tableVersion = GetTableVersion(dbCommandFactory);

            if (tableVersion == 2)
            {
                using (var command = GetInsertScriptCommandV2(dbCommandFactory, (SqlScript)script))
                {
                    command.ExecuteNonQuery();
                }
            }
            else if (tableVersion == 1)
            {
                using (var command = GetInsertScriptCommand(dbCommandFactory, script))
                {
                    command.ExecuteNonQuery();
                }
            }
        }
Beispiel #2
0
 protected override string GetInsertJournalEntrySql(string scriptName, string applied, string hash, DbUp.Engine.SqlScript script)
 {
 }
Beispiel #3
0
 public void StoreExecutedScript(DbUp.Engine.SqlScript script)
 {
 }
Beispiel #4
0
 public override void Execute(DbUp.Engine.SqlScript script)
 {
 }
Beispiel #5
0
 public void RemoveExecutedScript(DbUp.Engine.SqlScript script)
 {
 }