/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_3176773512") // add field collection.fields.addAt(2, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1843675174", "max": 0, "min": 0, "name": "description", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(3, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1379970884", "max": 0, "min": 0, "name": "bookByEmail", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(4, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text3572342135", "max": 0, "min": 0, "name": "contactWhatsApp", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(5, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1660949094", "max": 0, "min": 0, "name": "emailModalTitle", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(6, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2629822540", "max": 0, "min": 0, "name": "whatsappModalTitle", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(7, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1891425199", "max": 0, "min": 0, "name": "whatsappDirectMessage", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(8, new Field({ "hidden": false, "id": "json1464297386", "maxSize": 0, "name": "stats", "presentable": false, "required": false, "system": false, "type": "json" })) // add field collection.fields.addAt(9, new Field({ "hidden": false, "id": "file2484770424", "maxSelect": 1, "maxSize": 0, "mimeTypes": [], "name": "background_image", "presentable": false, "protected": false, "required": false, "system": false, "thumbs": [], "type": "file" })) // add field collection.fields.addAt(10, new Field({ "hidden": false, "id": "bool458715613", "name": "is_active", "presentable": false, "required": false, "system": false, "type": "bool" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_3176773512") // remove field collection.fields.removeById("text1843675174") // remove field collection.fields.removeById("text1379970884") // remove field collection.fields.removeById("text3572342135") // remove field collection.fields.removeById("text1660949094") // remove field collection.fields.removeById("text2629822540") // remove field collection.fields.removeById("text1891425199") // remove field collection.fields.removeById("json1464297386") // remove field collection.fields.removeById("file2484770424") // remove field collection.fields.removeById("bool458715613") return app.save(collection) })