/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("es63bkyiblpnxdf") // add admins field collection.schema.addField(new SchemaField({ "system": false, "id": "sf_admins", "name": "admins", "type": "relation", "required": false, "presentable": false, "unique": false, "options": { "collectionId": "_pb_users_auth_", "cascadeDelete": false, "minSelect": null, "maxSelect": null, "displayFields": null } })) // add allowMemberManage field collection.schema.addField(new SchemaField({ "system": false, "id": "sf_allowmm", "name": "allowMemberManage", "type": "bool", "required": false, "presentable": false, "unique": false, "options": {} })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("es63bkyiblpnxdf") collection.schema.removeField("sf_admins") collection.schema.removeField("sf_allowmm") return dao.saveCollection(collection) })