Adding schema compare UX support for external streams/streaming jobs (#14134)

This commit is contained in:
Benjin Dubishar
2021-02-01 21:57:46 -08:00
committed by GitHub
parent a0656d6f8d
commit 661e7c361d
3 changed files with 24 additions and 1 deletions

View File

@@ -110,6 +110,8 @@ export class SchemaCompareOptionsModel {
loc.ExtendedProperties,
loc.ExternalDataSources,
loc.ExternalFileFormats,
loc.ExternalStreams,
loc.ExternalStreamingJobs,
loc.ExternalTables,
loc.Filegroups,
loc.Files,
@@ -703,6 +705,10 @@ export class SchemaCompareOptionsModel {
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalDataSources)) ? false : true;
case loc.ExternalFileFormats:
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalFileFormats)) ? false : true;
case loc.ExternalStreams:
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalStreams)) ? false : true;
case loc.ExternalStreamingJobs:
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalStreamingJobs)) ? false : true;
case loc.ExternalTables:
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalTables)) ? false : true;
case loc.Filegroups:
@@ -894,6 +900,16 @@ export class SchemaCompareOptionsModel {
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalFileFormats);
}
return;
case loc.ExternalStreams:
if (!included) {
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalStreams);
}
return;
case loc.ExternalStreamingJobs:
if (!included) {
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalStreamingJobs);
}
return;
case loc.ExternalTables:
if (!included) {
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalTables);