mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
This reverts commit f70ff23ca5.
This commit is contained in:
@@ -867,7 +867,6 @@ export function getMigrationErrors(migration: DatabaseMigration): string {
|
||||
errors.push(migration.properties.migrationStatusWarnings?.completeRestoreErrorMessage);
|
||||
errors.push(migration.properties.migrationStatusWarnings?.restoreBlockingReason);
|
||||
errors.push(...migration.properties.migrationStatusDetails?.listOfCopyProgressDetails?.flatMap(cp => cp.errors) ?? []);
|
||||
errors.push(...migration.properties.migrationStatusDetails?.sqlSchemaMigrationStatus?.sqlSchemaCopyErrors ?? []);
|
||||
}
|
||||
|
||||
// remove undefined and duplicate error entries
|
||||
@@ -957,8 +956,6 @@ export interface StartDatabaseMigrationRequest {
|
||||
tableList?: string[],
|
||||
scope: string,
|
||||
offlineConfiguration?: OfflineConfiguration,
|
||||
sqlSchemaMigrationConfiguration?: SqlSchemaMigrationConfiguration,
|
||||
sqlDataMigrationConfiguration?: SqlDataMigrationConfiguration
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1085,8 +1082,6 @@ export interface DatabaseMigrationProperties {
|
||||
migrationOperationId: string;
|
||||
backupConfiguration: BackupConfiguration;
|
||||
offlineConfiguration: OfflineConfiguration;
|
||||
sqlSchemaMigrationConfiguration: SqlSchemaMigrationConfiguration;
|
||||
sqlDataMigrationConfiguration: SqlDataMigrationConfiguration;
|
||||
migrationFailureError: ErrorInfo;
|
||||
tableList: string[];
|
||||
}
|
||||
@@ -1108,7 +1103,6 @@ export interface MigrationStatusDetails {
|
||||
invalidFiles: string[];
|
||||
listOfCopyProgressDetails: CopyProgressDetail[];
|
||||
sqlDataCopyErrors: string[];
|
||||
sqlSchemaMigrationStatus: SqlSchemaMigrationStatus;
|
||||
|
||||
// new fields
|
||||
pendingDiffBackupsCount: number;
|
||||
@@ -1148,38 +1142,6 @@ export interface CopyProgressDetail {
|
||||
errors: string[];
|
||||
}
|
||||
|
||||
export interface SqlSchemaMigrationStatus {
|
||||
sqlSchemaCopyErrors: string[];
|
||||
status: 'CollectionCompleted' | 'PrefetchObjects' | 'GetDependency' | 'ScriptObjects' | 'ScriptViewIndexes' | 'ScriptOwnership' | 'GeneratingScript' | 'GeneratingScriptCompleted' | 'DeployingSchema' | 'DeploymentCompleted' | 'Completed' | 'CompletedWithError';
|
||||
objectsCollection: ObjectsCollection;
|
||||
scriptGeneration: ScriptGeneration;
|
||||
scriptDeployment: ScriptDeployment;
|
||||
}
|
||||
|
||||
export interface ObjectsCollection {
|
||||
totalCountOfObjectsCollected: number;
|
||||
startedOn: string;
|
||||
endedOn: string;
|
||||
}
|
||||
|
||||
export interface ScriptGeneration {
|
||||
progressInPercentage: string;
|
||||
scriptedObjectsFailedCount: number;
|
||||
scriptedObjectsCount: number;
|
||||
startedOn: string;
|
||||
endedOn: string;
|
||||
errors: string[];
|
||||
}
|
||||
|
||||
export interface ScriptDeployment {
|
||||
progressInPercentage: string;
|
||||
failedDeploymentCount: number;
|
||||
succeededDeploymentCount: number;
|
||||
startedOn: string;
|
||||
endedOn: string;
|
||||
errors: string[];
|
||||
}
|
||||
|
||||
export interface BackupConfiguration {
|
||||
sourceLocation?: SourceLocation;
|
||||
targetLocation?: TargetLocation;
|
||||
@@ -1190,14 +1152,6 @@ export interface OfflineConfiguration {
|
||||
lastBackupName?: string;
|
||||
}
|
||||
|
||||
export interface SqlSchemaMigrationConfiguration {
|
||||
enableSchemaMigration: boolean;
|
||||
}
|
||||
|
||||
export interface SqlDataMigrationConfiguration {
|
||||
enableDataMigration: boolean;
|
||||
}
|
||||
|
||||
export interface ErrorInfo {
|
||||
code: string;
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user