/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_340646327") // remove field collection.fields.removeById("url156371623") // add field collection.fields.addAt(9, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text156371623", "max": 0, "min": 0, "name": "logo_url", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_340646327") // add field collection.fields.addAt(9, new Field({ "exceptDomains": null, "hidden": false, "id": "url156371623", "name": "logo_url", "onlyDomains": null, "presentable": false, "required": false, "system": false, "type": "url" })) // remove field collection.fields.removeById("text156371623") return app.save(collection) })