mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
fix sql project generate script (#10697)
This commit is contained in:
@@ -201,11 +201,11 @@ export class ProjectsController {
|
||||
|
||||
const dacFxService = await ProjectsController.getDaxFxService();
|
||||
|
||||
if (profile as IDeploymentProfile) {
|
||||
if ((<IDeploymentProfile>profile).upgradeExisting) {
|
||||
return await dacFxService.deployDacpac(dacpacPath, profile.databaseName, (<IDeploymentProfile>profile).upgradeExisting, profile.connectionUri, TaskExecutionMode.execute, profile.sqlCmdVariables);
|
||||
}
|
||||
else {
|
||||
return await dacFxService.generateDeployScript(dacpacPath, profile.databaseName, profile.connectionUri, TaskExecutionMode.execute, profile.sqlCmdVariables);
|
||||
return await dacFxService.generateDeployScript(dacpacPath, profile.databaseName, profile.connectionUri, TaskExecutionMode.script, profile.sqlCmdVariables);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user