public void ProcessDoChangeScripts(Int64 lastChangeToApply, List <Int64> appliedChanges) { if (lastChangeToApply != Int64.MaxValue) { Info("Only applying changes up and including change script #" + lastChangeToApply); } Info("Changes currently applied to database:\n " + prettyPrinter.Format(appliedChanges)); List <ChangeScript> doChangeScripts = changeScriptRepository.GetOrderedListOfDoChangeScripts(); Info("Scripts available:\n " + prettyPrinter.FormatChangeScriptList(doChangeScripts)); changeScriptExecuter.ApplyDeltaFragmentHeaderOrFooterSql(schemaManager.GenerateVersionCheck()); List <Int64> changesToApply = LoopThruDoScripts(lastChangeToApply, doChangeScripts, appliedChanges); Info("To be applied:\n " + prettyPrinter.Format(changesToApply)); }
public void ShouldDisplayNonRangedNumbersAsSeperateEntities() { Int64[] list = { 1, 3, 5 }; Assert.AreEqual("1, 3, 5", prettyPrinter.Format(new List <Int64>(list))); }
public void ShouldDisplayNonRangedNumbersAsSeperateEntities() { var list = this.CreateUniqueChangeList("v1.0", 1, 3, 5); Assert.AreEqual(" v1.0\t1, 3, 5", prettyPrinter.Format(list)); }
private void LogStatus(ICollection <ChangeScript> scripts, ICollection <int> applied, ICollection <ChangeScript> toApply) { Info("Changes currently applied to database:\n " + prettyPrinter.Format(applied)); Info("Scripts available:\n " + prettyPrinter.FormatChangeScriptList(scripts)); Info("To be applied:\n " + prettyPrinter.FormatChangeScriptList(toApply)); }