mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Resetting subscriptions after AD tenant is changed in migration wizard (#14656)
* Resetting subscriptions after AD tenant is changed * removing migration in progress info message at the end * printing migration started errors in console.
This commit is contained in:
@@ -524,11 +524,10 @@ export class MigrationStateModel implements Model, vscode.Disposable {
|
|||||||
vscode.window.showInformationMessage(localize("sql.migration.starting.migration.message", 'Starting migration for database {0} to {1}', db, this._targetServerInstance.name));
|
vscode.window.showInformationMessage(localize("sql.migration.starting.migration.message", 'Starting migration for database {0} to {1}', db, this._targetServerInstance.name));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
vscode.window.showInformationMessage(e);
|
vscode.window.showInformationMessage(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
vscode.window.showInformationMessage(constants.MIGRATION_STARTED);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ export class AccountsSelectionPage extends MigrationWizardPage {
|
|||||||
*/
|
*/
|
||||||
if (value.selected) {
|
if (value.selected) {
|
||||||
this.migrationStateModel._azureAccount.properties.tenants = [this.migrationStateModel.getTenant(value.index)];
|
this.migrationStateModel._azureAccount.properties.tenants = [this.migrationStateModel.getTenant(value.index)];
|
||||||
|
this.migrationStateModel._subscriptions = undefined!;
|
||||||
|
this.migrationStateModel._targetSubscription = undefined!;
|
||||||
|
this.migrationStateModel._databaseBackup.subscription = undefined!;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user