/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_3872109612") // add field collection.fields.addAt(1, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1731158936", "max": 0, "min": 0, "name": "displayName", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(2, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2560465762", "max": 0, "min": 0, "name": "slug", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_3872109612") // remove field collection.fields.removeById("text1731158936") // remove field collection.fields.removeById("text2560465762") return app.save(collection) })