diff --git a/extensions/sql-migration/package.json b/extensions/sql-migration/package.json index 0b8c83efc8..e041b80ea9 100644 --- a/extensions/sql-migration/package.json +++ b/extensions/sql-migration/package.json @@ -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", diff --git a/extensions/sql-migration/src/api/sqlUtils.ts b/extensions/sql-migration/src/api/sqlUtils.ts index 29b96b6934..2bb90c3bc2 100644 --- a/extensions/sql-migration/src/api/sqlUtils.ts +++ b/extensions/sql-migration/src/api/sqlUtils.ts @@ -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, diff --git a/extensions/sql-migration/src/wizard/databaseBackupPage.ts b/extensions/sql-migration/src/wizard/databaseBackupPage.ts index 3ce27c283c..6aeabbdd8d 100644 --- a/extensions/sql-migration/src/wizard/databaseBackupPage.ts +++ b/extensions/sql-migration/src/wizard/databaseBackupPage.ts @@ -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( diff --git a/extensions/sql-migration/src/wizard/sqlSourceConfigurationPage.ts b/extensions/sql-migration/src/wizard/sqlSourceConfigurationPage.ts index 20c259b996..0ff8b27bf4 100644 --- a/extensions/sql-migration/src/wizard/sqlSourceConfigurationPage.ts +++ b/extensions/sql-migration/src/wizard/sqlSourceConfigurationPage.ts @@ -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!;