mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25:38 -05:00
Set target platform for database project from the server metadata (#20558)
* Set target platform for database project from the server metadata * Addressed comments
This commit is contained in:
@@ -594,6 +594,15 @@ export const targetPlatformToVersion: Map<string, string> = new Map<string, stri
|
||||
[SqlTargetPlatform.sqlDW, 'Dw']
|
||||
]);
|
||||
|
||||
export const onPremServerVersionToTargetPlatform: Map<number, SqlTargetPlatform> = new Map<number, SqlTargetPlatform>([
|
||||
[11, SqlTargetPlatform.sqlServer2012],
|
||||
[12, SqlTargetPlatform.sqlServer2014],
|
||||
[13, SqlTargetPlatform.sqlServer2016],
|
||||
[14, SqlTargetPlatform.sqlServer2017],
|
||||
[15, SqlTargetPlatform.sqlServer2019],
|
||||
[16, SqlTargetPlatform.sqlServer2022]
|
||||
]);
|
||||
|
||||
// DW is special since the system dacpac folder has a different name from the target platform
|
||||
export const AzureDwFolder = 'AzureDw';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user