/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41") // add collection.schema.addField(new SchemaField({ "system": false, "id": "mxuameue", "name": "reward", "type": "number", "required": false, "presentable": false, "unique": false, "options": { "min": 0, "max": 10, "noDecimal": false } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "qjz9b0tm", "name": "index4groupdefaultschedule", "type": "date", "required": false, "presentable": false, "unique": false, "options": { "min": "", "max": "" } })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("pf13z4hs1iubw41") // remove collection.schema.removeField("mxuameue") // update collection.schema.addField(new SchemaField({ "system": false, "id": "qjz9b0tm", "name": "schedule", "type": "date", "required": false, "presentable": false, "unique": false, "options": { "min": "", "max": "" } })) return dao.saveCollection(collection) })