/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("h5adxdw9gm0aw8s") // update collection.schema.addField(new SchemaField({ "system": false, "id": "sd27cbh8", "name": "action", "type": "select", "required": true, "presentable": false, "unique": false, "options": { "maxSelect": 1, "values": [ "vote", "team", "memory", "bet", "settle" ] } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "iszqa13h", "name": "points", "type": "number", "required": true, "presentable": false, "unique": false, "options": { "min": null, "max": null, "noDecimal": false } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "pnipfzbd", "name": "relatedId", "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("h5adxdw9gm0aw8s") // update collection.schema.addField(new SchemaField({ "system": false, "id": "sd27cbh8", "name": "action", "type": "select", "required": true, "presentable": false, "unique": false, "options": { "maxSelect": 1, "values": [ "vote", "team", "memory" ] } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "iszqa13h", "name": "points", "type": "number", "required": true, "presentable": false, "unique": false, "options": { "min": 1, "max": null, "noDecimal": false } })) // update collection.schema.addField(new SchemaField({ "system": false, "id": "pnipfzbd", "name": "relatedId", "type": "text", "required": true, "presentable": false, "unique": false, "options": { "min": null, "max": null, "pattern": "" } })) return dao.saveCollection(collection) })