mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Include database-scoped credentials when deploying with default options (#12840)
This commit is contained in:
@@ -215,6 +215,10 @@ export class PublishDatabaseDialog {
|
|||||||
if (!this.deploymentOptions) {
|
if (!this.deploymentOptions) {
|
||||||
this.deploymentOptions = await utils.GetDefaultDeploymentOptions();
|
this.deploymentOptions = await utils.GetDefaultDeploymentOptions();
|
||||||
|
|
||||||
|
// re-include database-scoped credentials
|
||||||
|
// 53 comes from $\DacFx_Preview_Dev\Product\Source\DeploymentApi\ObjectTypes.cs (exact value from decompiled metadata)
|
||||||
|
this.deploymentOptions.excludeObjectTypes = this.deploymentOptions.excludeObjectTypes.filter(x => x !== 53);
|
||||||
|
|
||||||
// this option needs to be true for same database references validation to work
|
// this option needs to be true for same database references validation to work
|
||||||
if (this.project.databaseReferences.length > 0) {
|
if (this.project.databaseReferences.length > 0) {
|
||||||
this.deploymentOptions.includeCompositeObjects = true;
|
this.deploymentOptions.includeCompositeObjects = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user