mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -05:00
Dac Deployment options model updates according to STS changes in mssql, SC, dacpac extensions (#18050)
* Dac Deployement options model updates according to STS changes * Undoing vscode whitespace changes which were added accidentally * Updated model with dac deploy options display names coming from the STS API * Combining all exisitng code updates into single branch/pr. it includes mssql model updates and SC/dacpac model, code and testupdates * sql db proj test failure fix * STS version bump to 4.0.0.4
This commit is contained in:
committed by
GitHub
parent
09d9ad0020
commit
36550798f3
@@ -328,14 +328,14 @@ export async function getDefaultPublishDeploymentOptions(project: Project): Prom
|
||||
const deploymentOptions = result.defaultDeploymentOptions;
|
||||
// re-include database-scoped credentials
|
||||
if (getAzdataApi()) {
|
||||
deploymentOptions.excludeObjectTypes = (deploymentOptions as mssql.DeploymentOptions).excludeObjectTypes.filter(x => x !== mssql.SchemaObjectType.DatabaseScopedCredentials);
|
||||
deploymentOptions.excludeObjectTypes.value = (deploymentOptions as mssql.DeploymentOptions).excludeObjectTypes.value?.filter(x => x !== mssql.SchemaObjectType.DatabaseScopedCredentials);
|
||||
} else {
|
||||
deploymentOptions.excludeObjectTypes = (deploymentOptions as vscodeMssql.DeploymentOptions).excludeObjectTypes.filter(x => x !== vscodeMssql.SchemaObjectType.DatabaseScopedCredentials);
|
||||
deploymentOptions.excludeObjectTypes.value = (deploymentOptions as vscodeMssql.DeploymentOptions).excludeObjectTypes.value?.filter(x => x !== vscodeMssql.SchemaObjectType.DatabaseScopedCredentials);
|
||||
}
|
||||
|
||||
// this option needs to be true for same database references validation to work
|
||||
if (project.databaseReferences.length > 0) {
|
||||
deploymentOptions.includeCompositeObjects = true;
|
||||
deploymentOptions.includeCompositeObjects.value = true;
|
||||
}
|
||||
return result.defaultDeploymentOptions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user