mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
Update SC dialog to save/read file structure to/from schema compare file (#22727)
* Read/Send ExtractTarget information from/to STS * Remove comment * Cleanup comment and update azdata dependency
This commit is contained in:
@@ -445,7 +445,7 @@ export class UpdateProjectFromDatabaseDialog {
|
||||
private createFolderStructureRow(view: azdata.ModelView): azdata.FlexContainer {
|
||||
this.folderStructureDropDown = view.modelBuilder.dropDown().withProps({
|
||||
values: [constants.file, constants.flat, constants.objectType, constants.schema, constants.schemaObjectType],
|
||||
value: constants.schemaObjectType, //TODO: Read this value from project info after fixing https://github.com/microsoft/azuredatastudio/issues/20332
|
||||
value: constants.schemaObjectType,
|
||||
ariaLabel: constants.folderStructureLabel,
|
||||
required: true,
|
||||
width: cssStyles.updateProjectFromDatabaseTextboxWidth
|
||||
@@ -560,7 +560,7 @@ export class UpdateProjectFromDatabaseDialog {
|
||||
connectionDetails: connectionDetails,
|
||||
ownerUri: ownerUri,
|
||||
projectFilePath: '',
|
||||
folderStructure: mssql.ExtractTarget.schemaObjectType,
|
||||
extractTarget: mssql.ExtractTarget.schemaObjectType,
|
||||
targetScripts: [],
|
||||
dataSchemaProvider: '',
|
||||
packageFilePath: '',
|
||||
@@ -570,7 +570,7 @@ export class UpdateProjectFromDatabaseDialog {
|
||||
const targetEndpointInfo: mssql.SchemaCompareEndpointInfo = {
|
||||
endpointType: mssql.SchemaCompareEndpointType.Project,
|
||||
projectFilePath: this.projectFileDropdown!.value! as string,
|
||||
folderStructure: mapExtractTargetEnum(<string>this.folderStructureDropDown!.value),
|
||||
extractTarget: mapExtractTargetEnum(<string>this.folderStructureDropDown!.value),
|
||||
targetScripts: [],
|
||||
dataSchemaProvider: '',
|
||||
connectionDetails: connectionDetails,
|
||||
|
||||
Reference in New Issue
Block a user