/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_147944274") // update collection data unmarshal({ "listRule": "" }, collection) // remove field collection.fields.removeById("_clone_7KTY") // remove field collection.fields.removeById("_clone_HF2I") // remove field collection.fields.removeById("_clone_ItTJ") // add field collection.fields.addAt(1, new Field({ "autogeneratePattern": "", "hidden": false, "id": "_clone_oLDn", "max": 0, "min": 0, "name": "bericht", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(2, new Field({ "hidden": false, "id": "_clone_bb1h", "name": "verstuurd", "onCreate": true, "onUpdate": false, "presentable": false, "system": false, "type": "autodate" })) // add field collection.fields.addAt(3, new Field({ "autogeneratePattern": "", "hidden": false, "id": "_clone_gXjC", "max": 255, "min": 0, "name": "naam", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_147944274") // update collection data unmarshal({ "listRule": null }, collection) // add field collection.fields.addAt(1, new Field({ "autogeneratePattern": "", "hidden": false, "id": "_clone_7KTY", "max": 0, "min": 0, "name": "bericht", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(2, new Field({ "hidden": false, "id": "_clone_HF2I", "name": "verstuurd", "onCreate": true, "onUpdate": false, "presentable": false, "system": false, "type": "autodate" })) // add field collection.fields.addAt(3, new Field({ "autogeneratePattern": "", "hidden": false, "id": "_clone_ItTJ", "max": 255, "min": 0, "name": "naam", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // remove field collection.fields.removeById("_clone_oLDn") // remove field collection.fields.removeById("_clone_bb1h") // remove field collection.fields.removeById("_clone_gXjC") return app.save(collection) })