/// migrate((app) => { const collection = new Collection({ "createRule": null, "deleteRule": null, "fields": [ { "autogeneratePattern": "", "hidden": false, "id": "text3208210256", "max": 0, "min": 0, "name": "id", "pattern": "^[a-z0-9]+$", "presentable": false, "primaryKey": true, "required": true, "system": true, "type": "text" }, { "hidden": false, "id": "_clone_oC8t", "max": "", "min": "", "name": "streamDate", "presentable": false, "required": false, "system": false, "type": "date" } ], "id": "pbc_3009055234", "indexes": [], "listRule": null, "name": "vtuber_vods", "system": false, "type": "view", "updateRule": null, "viewQuery": "SELECT\n vods.id,\n vods.streamDate\nFROM vods\nLEFT JOIN json_each(vods.vtubers) ON json_each.value = 'el_xox'", "viewRule": null }); return app.save(collection); }, (app) => { const collection = app.findCollectionByNameOrId("pbc_3009055234"); return app.delete(collection); })