/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_124438418") // add field collection.fields.addAt(11, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text961728715", "max": 0, "min": 0, "name": "platform", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(12, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text4266973511", "max": 0, "min": 0, "name": "group_id", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_124438418") // remove field collection.fields.removeById("text961728715") // remove field collection.fields.removeById("text4266973511") return app.save(collection) })