mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
set initial target db name (#17801)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "sql-migration",
|
"name": "sql-migration",
|
||||||
"displayName": "%displayName%",
|
"displayName": "%displayName%",
|
||||||
"description": "%description%",
|
"description": "%description%",
|
||||||
"version": "0.1.10",
|
"version": "0.1.11",
|
||||||
"publisher": "Microsoft",
|
"publisher": "Microsoft",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
|
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
|
||||||
|
|||||||
@@ -216,10 +216,10 @@ export class SqlMigrationServiceDetailsDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _updateTableCell(table: azdata.DeclarativeTableComponent, row: number, col: number, value: string, keyName: string): Promise<void> {
|
private async _updateTableCell(table: azdata.DeclarativeTableComponent, row: number, col: number, value: string, keyName: string): Promise<void> {
|
||||||
const dataValues = table.dataValues;
|
const dataValues = table.dataValues!;
|
||||||
dataValues![row][col].value = value;
|
dataValues![row][col].value = value;
|
||||||
table.dataValues = [];
|
await table.setDataValues([]);
|
||||||
table.dataValues = dataValues;
|
await table.setDataValues(dataValues);
|
||||||
await vscode.window.showInformationMessage(constants.AUTH_KEY_REFRESHED(keyName));
|
await vscode.window.showInformationMessage(constants.AUTH_KEY_REFRESHED(keyName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -821,7 +821,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
|
|||||||
this.migrationStateModel._targetDatabaseNames = [];
|
this.migrationStateModel._targetDatabaseNames = [];
|
||||||
this.migrationStateModel._databaseBackup.blobs = [];
|
this.migrationStateModel._databaseBackup.blobs = [];
|
||||||
this.migrationStateModel._migrationDbs.forEach((db, index) => {
|
this.migrationStateModel._migrationDbs.forEach((db, index) => {
|
||||||
this.migrationStateModel._targetDatabaseNames.push('');
|
this.migrationStateModel._targetDatabaseNames.push(db);
|
||||||
this.migrationStateModel._databaseBackup.blobs.push(<Blob>{});
|
this.migrationStateModel._databaseBackup.blobs.push(<Blob>{});
|
||||||
const targetDatabaseInput = this._view.modelBuilder.inputBox().withProps({
|
const targetDatabaseInput = this._view.modelBuilder.inputBox().withProps({
|
||||||
required: true,
|
required: true,
|
||||||
@@ -973,7 +973,7 @@ export class DatabaseBackupPage extends MigrationWizardPage {
|
|||||||
});
|
});
|
||||||
data.push(targetRow);
|
data.push(targetRow);
|
||||||
});
|
});
|
||||||
this._networkShareTargetDatabaseNamesTable.dataValues = data;
|
await this._networkShareTargetDatabaseNamesTable.setDataValues(data);
|
||||||
|
|
||||||
data = [];
|
data = [];
|
||||||
this.migrationStateModel._migrationDbs.forEach((db, index) => {
|
this.migrationStateModel._migrationDbs.forEach((db, index) => {
|
||||||
|
|||||||
@@ -504,7 +504,7 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
this._authKeyTable.dataValues = data;
|
await this._authKeyTable.setDataValues(data);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user