mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
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:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user