diff --git a/src/Horton/SqlServer/SchemaInfo.cs b/src/Horton/SqlServer/SchemaInfo.cs index 2ed1b4a..8d1b7a8 100644 --- a/src/Horton/SqlServer/SchemaInfo.cs +++ b/src/Horton/SqlServer/SchemaInfo.cs @@ -99,7 +99,7 @@ public void ApplyMigration(ScriptFile migration) public static string[] ParseSqlScript(string script) { - var regex = new Regex("^GO", RegexOptions.IgnoreCase | RegexOptions.Multiline); + var regex = new Regex("^GO(?!\\S)", RegexOptions.IgnoreCase | RegexOptions.Multiline); return regex.Split(script); }