/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("gzjx76q8fu9nqby") // remove collection.schema.removeField("i9nbkkcw") // add collection.schema.addField(new SchemaField({ "system": false, "id": "6fotsmab", "name": "capital", "type": "text", "required": false, "presentable": false, "unique": false, "options": { "min": null, "max": null, "pattern": "" } })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("gzjx76q8fu9nqby") // add collection.schema.addField(new SchemaField({ "system": false, "id": "i9nbkkcw", "name": "capital", "type": "relation", "required": false, "presentable": false, "unique": false, "options": { "collectionId": "qeo77u83ue36ptc", "cascadeDelete": false, "minSelect": null, "maxSelect": 1, "displayFields": null } })) // remove collection.schema.removeField("6fotsmab") return dao.saveCollection(collection) })