protected void ApplyChangeScript(ChangeScript script)
{
ICollection<string> statements = this.splitter.Split(script.GetContent());
int i = 0;
foreach (var statement in statements)
{
try
{
if (statements.Count > 1)
{
this.infoTextWriter.WriteLine(" -> statement " + (i + 1) + " of " + statements.Count + "...");
}
this.queryExecuter.Execute(statement);
i++;
}
catch (DbException e)
{
throw new ChangeScriptFailedException(e, script, i + 1, statement);
}
}
}