hotfix sql-migration extension for release to PROD, remove usage of unreleased ads enum (#20879)

* remove enum and vbump hotfix

* add update comments
This commit is contained in:
brian-harris
2022-10-19 14:31:59 -07:00
committed by GitHub
parent adc908c04b
commit 14cbe09a20
4 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
"name": "sql-migration",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.1.0",
"version": "1.1.1",
"publisher": "Microsoft",
"preview": false,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",

View File

@@ -84,14 +84,14 @@ function getSqlDbConnectionProfile(
databaseName: databaseName,
userName: userName,
password: password,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
authenticationType: 'SqlLogin',
savePassword: false,
saveProfile: false,
options: {
conectionName: '',
server: serverName,
database: databaseName,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
authenticationType: 'SqlLogin',
user: userName,
password: password,
connectionTimeout: 60,
@@ -122,7 +122,7 @@ function getConnectionProfile(
azureResourceId: azureResourceId,
userName: userName,
password: password,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
authenticationType: 'SqlLogin', // TODO: use azdata.connection.AuthenticationType.SqlLogin after next ADS release
savePassword: false,
groupFullName: connectId,
groupId: connectId,
@@ -131,7 +131,7 @@ function getConnectionProfile(
options: {
conectionName: connectId,
server: serverName,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
authenticationType: 'SqlLogin',
user: userName,
password: password,
connectionTimeout: 60,

View File

@@ -727,9 +727,9 @@ export class DatabaseBackupPage extends MigrationWizardPage {
this.migrationStateModel.sourceConnectionId)), query);
const username = results.rows[0][0].displayValue;
this.migrationStateModel._authenticationType = connectionProfile.authenticationType === azdata.connection.AuthenticationType.SqlLogin
this.migrationStateModel._authenticationType = connectionProfile.authenticationType === 'SqlLogin'
? MigrationSourceAuthenticationType.Sql
: connectionProfile.authenticationType === azdata.connection.AuthenticationType.Integrated
: connectionProfile.authenticationType === 'Integrated' // TODO: use azdata.connection.AuthenticationType.Integrated after next ADS release
? MigrationSourceAuthenticationType.Integrated
: undefined!;
this._sourceHelpText.value = constants.SQL_SOURCE_DETAILS(

View File

@@ -59,9 +59,9 @@ export class SqlSourceConfigurationPage extends MigrationWizardPage {
const query = 'select SUSER_NAME()';
const results = await queryProvider.runQueryAndReturn(await (azdata.connection.getUriForConnection(this.migrationStateModel.sourceConnectionId)), query);
const username = results.rows[0][0].displayValue;
this.migrationStateModel._authenticationType = connectionProfile.authenticationType === azdata.connection.AuthenticationType.SqlLogin
this.migrationStateModel._authenticationType = connectionProfile.authenticationType === 'SqlLogin'
? MigrationSourceAuthenticationType.Sql
: connectionProfile.authenticationType === azdata.connection.AuthenticationType.Integrated
: connectionProfile.authenticationType === 'Integrated'
? MigrationSourceAuthenticationType.Integrated
: undefined!;