/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_1127093390") // add field collection.fields.addAt(21, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text27624996402", "max": 0, "min": 0, "name": "smo", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(22, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1812407069", "max": 0, "min": 0, "name": "ksg", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(23, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1193963742", "max": 0, "min": 0, "name": "kpg", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // add field collection.fields.addAt(24, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text31689626452", "max": 0, "min": 0, "name": "prev", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(8, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2392944706", "max": 0, "min": 0, "name": "finCode", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(9, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2724104176", "max": 0, "min": 0, "name": "amount", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(16, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1132390713", "max": 0, "min": 0, "name": "postuplenie", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(17, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1184158426", "max": 0, "min": 0, "name": "vypiska", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(18, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1831371789", "max": 0, "min": 0, "name": "ishodGosp", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(19, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2762499640", "max": 0, "min": 0, "name": "koikodni", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(20, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text3168962645", "max": 0, "min": 0, "name": "payment", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_1127093390") // remove field collection.fields.removeById("text27624996402") // remove field collection.fields.removeById("text1812407069") // remove field collection.fields.removeById("text1193963742") // remove field collection.fields.removeById("text31689626452") // update field collection.fields.addAt(8, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2392944706", "max": 0, "min": 0, "name": "amount", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(9, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2724104176", "max": 0, "min": 0, "name": "visitCode", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(16, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1132390713", "max": 0, "min": 0, "name": "visit", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(17, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1184158426", "max": 0, "min": 0, "name": "yetCode", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(18, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text1831371789", "max": 0, "min": 0, "name": "payment", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(19, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text2762499640", "max": 0, "min": 0, "name": "smo", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) // update field collection.fields.addAt(20, new Field({ "autogeneratePattern": "", "hidden": false, "id": "text3168962645", "max": 0, "min": 0, "name": "prev", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" })) return app.save(collection) })