SysUpdateCollectionMigrate
Updates the collection option indicating whether custom collection data is to be migrated during deployment (true) or not (false).
Service | Operation |
---|---|
customEntity | SYS_UPDATE_COLLECTION_MIGRATE |
Method Parameters
Parameter | Description |
---|---|
entityType | The name of the entity type collection |
migrate | true or false |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var entityType = "athletes";
var customEntityProxy = bridge.getCustomEntityServiceProxy();
var postResult = customEntityProxy.sysUpdateCollectionMigrate(entityType, true);
if (postResult.status == 200) {
// Success!
}
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"options": {
"isOwned": false,
"migrate": true
},
"name": "athletes",
"customIndexes": {}
}
}