/// migrate((db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("e864strfxo14pm4") // add collection.schema.addField(new SchemaField({ "system": false, "id": "1utgul91", "name": "author", "type": "relation", "required": false, "presentable": false, "unique": false, "options": { "collectionId": "_pb_users_auth_", "cascadeDelete": false, "minSelect": null, "maxSelect": 1, "displayFields": null } })) return dao.saveCollection(collection) }, (db) => { const dao = new Dao(db) const collection = dao.findCollectionByNameOrId("e864strfxo14pm4") // remove collection.schema.removeField("1utgul91") return dao.saveCollection(collection) })