mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-14 03:58:33 -05:00
Save db project information when saved in scmp file (#20335)
* Save db project information when saved in scmp file * Address comments
This commit is contained in:
@@ -1126,6 +1126,20 @@ export class SchemaCompareMainWindow {
|
||||
if (ownerUri) {
|
||||
endpointInfo = endpoint;
|
||||
endpointInfo.ownerUri = ownerUri;
|
||||
} else if (endpoint.endpointType === mssql.SchemaCompareEndpointType.Project) {
|
||||
endpointInfo = {
|
||||
endpointType: endpoint.endpointType,
|
||||
packageFilePath: '',
|
||||
serverDisplayName: '',
|
||||
serverName: '',
|
||||
databaseName: '',
|
||||
ownerUri: '',
|
||||
connectionDetails: undefined,
|
||||
projectFilePath: endpoint.projectFilePath,
|
||||
targetScripts: [],
|
||||
dataSchemaProvider: '',
|
||||
folderStructure: loc.schemaObjectType // TODO: Pick this automatically from the scmp file, after issue #20332 is resolved (check dsp as well)
|
||||
};
|
||||
} else {
|
||||
// need to do this instead of just setting it to the endpoint because some fields are null which will cause an error when sending the compare request
|
||||
endpointInfo = {
|
||||
|
||||
Reference in New Issue
Block a user