liquibase-mongodb
liquibase-mongodb copied to clipboard
runCommand fails to run customAction
I’m trying to add liquibase to my project. I need to create a collection along with index and shard keys creation:
db.runCommand({customAction: “CreateCollection”, collection: “name”, offerThroughput: 400, shardKey: “partition_key”, indexes: [{key: {_id: 1}}, {key: {partition_key: 1, some_key: 1},unique: true}]});
offerThroughput key is specific for CosmosDB which I’m using in my project.
I tried next options: