mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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
@@ -302,7 +302,7 @@ suite('Schema compare integration test suite @DacFx@', () => {
|
||||
assert(includeResult.affectedDependencies[0].included === true, 'Table t2 should be included as a result of including v1. Actual: false');
|
||||
|
||||
// excluding views from the comparison should make it so t2 can be excluded
|
||||
deploymentOptions.excludeObjectTypes.push(mssql.SchemaObjectType.Views);
|
||||
deploymentOptions.excludeObjectTypes.value.push(mssql.SchemaObjectType.Views);
|
||||
await schemaCompareService.schemaCompare(operationId, source, target, azdata.TaskExecutionMode.execute, deploymentOptions);
|
||||
const excludeResult3 = await schemaCompareService.schemaCompareIncludeExcludeNode(operationId, t2Difference, false, azdata.TaskExecutionMode.execute);
|
||||
assertIncludeExcludeResult(excludeResult3, true, 0, 0);
|
||||
@@ -507,7 +507,7 @@ suite('Schema compare integration test suite @DacFx@', () => {
|
||||
|
||||
const deploymentOptionsResult = await schemaCompareService.schemaCompareGetDefaultOptions();
|
||||
let deploymentOptions = deploymentOptionsResult.defaultDeploymentOptions;
|
||||
deploymentOptions.excludeObjectTypes.push(mssql.SchemaObjectType.TableValuedFunctions);
|
||||
deploymentOptions.excludeObjectTypes.value.push(mssql.SchemaObjectType.TableValuedFunctions);
|
||||
const schemaCompareResult = await schemaCompareService.schemaCompare(operationId, source, target, azdata.TaskExecutionMode.execute, deploymentOptions);
|
||||
assertSchemaCompareResult(schemaCompareResult, operationId, 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user