/// migrate((app) => { const collection = new Collection({ "createRule": "", "deleteRule": "", "fields": [ { "autogeneratePattern": "[a-z0-9]{15}", "help": "", "hidden": false, "id": "text3208210256", "max": 15, "min": 15, "name": "id", "pattern": "^[a-z0-9]+$", "presentable": false, "primaryKey": true, "required": true, "system": true, "type": "text" }, { "help": "", "hidden": false, "id": "number3145888567", "max": null, "min": null, "name": "year", "onlyInt": false, "presentable": false, "required": true, "system": false, "type": "number" }, { "help": "", "hidden": false, "id": "number3807012359", "max": null, "min": null, "name": "week_number", "onlyInt": false, "presentable": false, "required": true, "system": false, "type": "number" }, { "autogeneratePattern": "", "help": "", "hidden": false, "id": "text525672509", "max": 0, "min": 0, "name": "topic_id", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" }, { "autogeneratePattern": "", "help": "", "hidden": false, "id": "text2541086472", "max": 0, "min": 0, "name": "theme", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" }, { "help": "", "hidden": false, "id": "number478273799", "max": null, "min": null, "name": "quarter", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" }, { "help": "", "hidden": false, "id": "bool1753762221", "name": "is_review_week", "presentable": false, "required": false, "system": false, "type": "bool" }, { "help": "", "hidden": false, "id": "number1169138922", "max": null, "min": null, "name": "sort_order", "onlyInt": false, "presentable": false, "required": false, "system": false, "type": "number" }, { "hidden": false, "id": "autodate2990389176", "name": "created", "onCreate": true, "onUpdate": false, "presentable": false, "system": false, "type": "autodate" }, { "hidden": false, "id": "autodate3332085495", "name": "updated", "onCreate": true, "onUpdate": true, "presentable": false, "system": false, "type": "autodate" } ], "id": "pbc_2236782419", "indexes": [], "listRule": "", "name": "curriculum", "system": false, "type": "base", "updateRule": "", "viewRule": "" }); return app.save(collection); }, (app) => { const collection = app.findCollectionByNameOrId("pbc_2236782419"); return app.delete(collection); })