/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_986407980") // remove field collection.fields.removeById("relation3163681814") return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_986407980") // add field collection.fields.addAt(2, new Field({ "cascadeDelete": false, "collectionId": "pbc_2337082678", "hidden": false, "id": "relation3163681814", "maxSelect": 1, "minSelect": 0, "name": "resource", "presentable": false, "required": false, "system": false, "type": "relation" })) return app.save(collection) })