mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-08 01:28:29 -05:00
Add DacFx Generate Deploy Plan Operation (#768)
* initial adding upgrade plan * upgrade plan request from ADS works * now data loss operations are returned * fixes after rebasing * refactoring to use GenerateDeployPlan instead of UpgradePlan * improving test * Addressing comments * changing abstract execute to virtual * changed GenerateDeployPlanOepration to use Execute() * addressing comments * simplyfing deploy options * adding deploy options to deploy and generate script operations
This commit is contained in:
@@ -90,5 +90,23 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
|
||||
}
|
||||
|
||||
public abstract void Execute();
|
||||
|
||||
protected DacDeployOptions GetDefaultDeployOptions()
|
||||
{
|
||||
DacDeployOptions options = new DacDeployOptions
|
||||
{
|
||||
AllowDropBlockingAssemblies = true,
|
||||
AllowIncompatiblePlatform = true,
|
||||
BlockOnPossibleDataLoss = false,
|
||||
DropObjectsNotInSource = true,
|
||||
DropPermissionsNotInSource = true,
|
||||
DropRoleMembersNotInSource = true,
|
||||
IgnoreKeywordCasing = false,
|
||||
IgnoreSemicolonBetweenStatements = false,
|
||||
IgnoreWhitespace = false,
|
||||
};
|
||||
|
||||
return options;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user