Skip to content

Commit

Permalink
Don't script Functions explicitly
Browse files Browse the repository at this point in the history
Don't script Functions explicitly because they will be scripted 
when scripting UDFs (ScriptAllUserDefinedTypes).  This avoids
them being scripted twice.

Fixes bradymholt#14
  • Loading branch information
bradymholt authored Jun 6, 2017
1 parent f806dbf commit f74ec3b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions DbUp.Support.SqlServer.Scripting/DbObjectScripter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ public ScripterResult ScriptAll()
ScriptAllStoredProcedures(context);
});

var functionsScriptTask = Task.Run(() =>
{
var context = GetDatabaseContext(true);
ScriptAllFunctions(context);
});

var synonymsScriptTask = Task.Run(() =>
{
var context = GetDatabaseContext(true);
Expand All @@ -84,10 +78,9 @@ public ScripterResult ScriptAll()
tablesScriptTask,
viewsScriptTask,
storedProceduresScriptTask,
functionsScriptTask,
synonymsScriptTask,
udtScriptTask
);
synonymsScriptTask,
udtScriptTask
);
}
catch (Exception ex)
{
Expand Down

0 comments on commit f74ec3b

Please sign in to comment.