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