/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("zfbbb4gbdk9dh6k") // remove collection.schema.removeField("artkpdru") // add collection.schema.addField(new SchemaField({ "system": false, "id": "nplgrnec", "name": "portrait", "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("zfbbb4gbdk9dh6k") // add collection.schema.addField(new SchemaField({ "system": false, "id": "artkpdru", "name": "portrait", "type": "file", "required": false, "presentable": false, "unique": false, "options": { "maxSelect": 1, "maxSize": 5242880, "mimeTypes": [], "thumbs": [], "protected": false } })) // remove collection.schema.removeField("nplgrnec") return dao.saveCollection(collection) })