ADS changes for new engine edition (#7695)

* Sql on demand changes

* Formating files

* Removing features for new Engine Edition

* Fixing Restore & Backup issue. Adding support for multiple conditions per flavor

* tabifying

* Formating documents

* Work in progress

* Resolving comments

* Resolving comments.

* Fixing typo
This commit is contained in:
BranislavGrbicMDCS
2019-10-22 12:50:15 +02:00
committed by GitHub
parent 65fb77ef5c
commit 397f6afaf1
25 changed files with 271 additions and 80 deletions

View File

@@ -308,11 +308,18 @@
"flavors": [
{
"flavor": "on_prem",
"condition": {
"field": "isCloud",
"operator": "!=",
"value": true
},
"conditions": [
{
"field": "isCloud",
"operator": "!=",
"value": true
},
{
"field": "engineEditionId",
"operator": "!=",
"value": "11"
}
],
"databaseProperties": [
{
"displayName": "%onprem.databaseProperties.recoveryModel%",
@@ -362,11 +369,13 @@
},
{
"flavor": "cloud",
"condition": {
"field": "isCloud",
"operator": "==",
"value": true
},
"conditions": [
{
"field": "isCloud",
"operator": "==",
"value": true
}
],
"databaseProperties": [
{
"displayName": "%cloud.databaseProperties.azureEdition%",
@@ -395,6 +404,36 @@
"value": "serverEdition"
}
]
},
{
"flavor": "on_demand",
"conditions": [
{
"field": "engineEditionId",
"operator": "==",
"value": "11"
}
],
"databaseProperties": [
{
"displayName": "%cloud.databaseProperties.compatibilityLevel%",
"value": "compatibilityLevel"
},
{
"displayName": "%cloud.databaseProperties.owner%",
"value": "owner"
}
],
"serverProperties": [
{
"displayName": "%cloud.serverProperties.serverVersion%",
"value": "serverVersion"
},
{
"displayName": "%cloud.serverProperties.serverEdition%",
"value": "serverEdition"
}
]
}
]
},

View File

@@ -22,7 +22,8 @@ export enum ContextKeys {
const isCloudEditions = [
5,
6
6,
11
];
export function setCommandContext(key: ContextKeys | string, value: any) {