/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("e864strfxo14pm4") // add collection.schema.addField(new SchemaField({ "system": false, "id": "aqbpyawe", "name": "photos", "type": "file", "required": false, "presentable": false, "unique": false, "options": { "mimeTypes": [ "image/jpeg", "image/vnd.mozilla.apng", "image/png", "image/webp", "image/svg+xml" ], "thumbs": [], "maxSelect": 99, "maxSize": 5242880, "protected": false } })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("e864strfxo14pm4") // remove collection.schema.removeField("aqbpyawe") return dao.saveCollection(collection) })