/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("eys4l76rqwkloyf") // add collection.schema.addField(new SchemaField({ "system": false, "id": "yfxer1xb", "name": "og_post", "type": "relation", "required": false, "presentable": false, "unique": false, "options": { "collectionId": "jbzxvie5c27b6od", "cascadeDelete": false, "minSelect": null, "maxSelect": 1, "displayFields": null } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "phojgvgc", "name": "field", "type": "file", "required": true, "presentable": false, "unique": false, "options": { "mimeTypes": [], "thumbs": [], "maxSelect": 99, "maxSize": 5242880, "protected": false } })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("eys4l76rqwkloyf") // remove collection.schema.removeField("yfxer1xb") // update collection.schema.addField(new SchemaField({ "system": false, "id": "phojgvgc", "name": "field", "type": "file", "required": true, "presentable": false, "unique": false, "options": { "mimeTypes": [], "thumbs": [], "maxSelect": 1, "maxSize": 5242880, "protected": false } })) return dao.saveCollection(collection) })