Skip to content

Commit

Permalink
DAT-15502. added the compoud wildcard index(new MongoDB 7 feature) to…
Browse files Browse the repository at this point in the history
… createIndex test
  • Loading branch information
PavloTytarchuk committed Mar 7, 2024
1 parent c543e1d commit f0e4605
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,30 @@
}
]
}
},
{
"changeSet": {
"id": "4",
"author": "as",
"changes": [
{
"createIndex": {
"collectionName": "salesData_json",
"keys": {
"$rawJson": {
"tenantId": 1,
"customFields.$**": 1
}
},
"options": {
"$rawJson": {
"name": "compoundWildcardIndex_json"
}
}
}
}
]
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,16 @@
</mongodb:options>
</mongodb:createIndex>
</changeSet>

<changeSet id="4" author="as">
<mongodb:createIndex collectionName="salesData">
<mongodb:keys>
{ tenantId: 1,
"customFields.$**": 1 }
</mongodb:keys>
<mongodb:options>
{name: "compoundWildcardIndex"}
</mongodb:options>
</mongodb:createIndex>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@ databaseChangeLog:
collectionName: countries_yaml
keys: '{ name: 1, type: 1}'
options: '{unique: true, name: "ui_countries"}'

- changeSet:
id: 4
author: as
changes:
- createIndex:
collectionName: salesData_yaml
keys: '{ tenantId: 1, "customFields.$**": 1 }'
options: '{name: "compoundWildcardIndex_yaml"}'
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
"description":"createIndex collectionName=countries_json",
"id":"3",
"execType":"EXECUTED"
},
{
"fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.json",
"author":"as",
"description":"createIndex collectionName=salesData_json",
"id":"4",
"execType":"EXECUTED"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
"description":"createIndex collectionName=countries",
"id":"3",
"execType":"EXECUTED"
},
{
"fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.xml",
"author":"as",
"description":"createIndex collectionName=salesData",
"id":"4",
"execType":"EXECUTED"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
"author":"as",
"description":"createIndex collectionName=countries_yaml",
"id":"3",
"execType":"EXECUTED"
},
{
"fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.yaml",
"author":"as",
"description":"createIndex collectionName=salesData_yaml",
"id":"4",
"tag":"test_tag",
"execType":"EXECUTED"
}
Expand Down

0 comments on commit f0e4605

Please sign in to comment.