/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_3845069049") // add field collection.fields.addAt(2, new Field({ "hidden": false, "id": "number2492286417", "max": null, "min": null, "name": "sets", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" })) // add field collection.fields.addAt(3, new Field({ "hidden": false, "id": "number449999704", "max": null, "min": null, "name": "weights", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" })) // add field collection.fields.addAt(4, new Field({ "hidden": false, "id": "number1214113712", "max": null, "min": null, "name": "reps", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_3845069049") // remove field collection.fields.removeById("number2492286417") // remove field collection.fields.removeById("number449999704") // remove field collection.fields.removeById("number1214113712") return app.save(collection) })