mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Renaming controller to migration service and other bug fixes/ validations. (#14751)
* - Added coming soon message for learn more. - Potential fix for learn more message * Renaming of controller to sqlMigrationService * Surfacing some errors -Azure account is stale error -Migration Service creation error. * Adding refresh azure token validation. * Fixing some errors pointed during PR -Fixing property names -Fixing count * Fixing migration status - Adding special error handling for resource not found error - Deleting unfound migrations from local cache - Using prefetched migration status for view all Misc fixes: - Using SQL server version name instead of number - Fixing Icons on sku recommendation page - Fixing table column width in cutover dialog - Adding spinner button to refresh. * Fixing all strings in migration service page and dialog * fixed a string error in create service dialog
This commit is contained in:
@@ -21,3 +21,22 @@ export function deepClone<T>(obj: T): T {
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
export function getSqlServerName(majorVersion: number): string | undefined {
|
||||
switch (majorVersion) {
|
||||
case 10:
|
||||
return 'SQL Server 2008';
|
||||
case 11:
|
||||
return 'SQL Server 2012';
|
||||
case 12:
|
||||
return 'SQL Server 2014';
|
||||
case 13:
|
||||
return 'SQL Server 2016';
|
||||
case 14:
|
||||
return 'SQL Server 2017';
|
||||
case 15:
|
||||
return 'SQL Server 2019';
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user