/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_879072730") // add field collection.fields.addAt(6, new Field({ "help": "", "hidden": false, "id": "bool1825427252", "name": "played", "presentable": false, "required": false, "system": false, "type": "bool" })) // add field collection.fields.addAt(7, new Field({ "autogeneratePattern": "", "help": "", "hidden": false, "id": "text18589324", "max": 0, "min": 0, "name": "notes", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_879072730") // remove field collection.fields.removeById("bool1825427252") // remove field collection.fields.removeById("text18589324") return app.save(collection) })