/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_2309823339") // add field collection.fields.addAt(1, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2225060980", "max": 0, "min": 0, "name": "_label", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(2, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text3105709140", "max": 0, "min": 0, "name": "_url", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(3, new Field({ "hidden": false, "id": "number4113142680", "max": null, "min": null, "name": "order", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" })) // add field collection.fields.addAt(4, new Field({ "hidden": false, "id": "bool458715613", "name": "is_active", "presentable": false, "required": false, "system": false, "type": "bool" })) // add field collection.fields.addAt(5, new Field({ "hidden": false, "id": "bool2155896681", "name": "target_blank", "presentable": false, "required": false, "system": false, "type": "bool" })) // add field collection.fields.addAt(6, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2852757930", "max": 0, "min": 0, "name": "css_class", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_2309823339") // remove field collection.fields.removeById("text2225060980") // remove field collection.fields.removeById("text3105709140") // remove field collection.fields.removeById("number4113142680") // remove field collection.fields.removeById("bool458715613") // remove field collection.fields.removeById("bool2155896681") // remove field collection.fields.removeById("text2852757930") return app.save(collection) })