/// 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" }, { "autogeneratePattern": "", "hidden": false, "id": "_clone_7KTY", "max": 0, "min": 0, "name": "bericht", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" }, { "hidden": false, "id": "_clone_HF2I", "name": "verstuurd", "onCreate": true, "onUpdate": false, "presentable": false, "system": false, "type": "autodate" }, { "autogeneratePattern": "", "hidden": false, "id": "_clone_ItTJ", "max": 255, "min": 0, "name": "naam", "pattern": "", "presentable": false, "primaryKey": false, "required": false, "system": false, "type": "text" } ], "id": "pbc_147944274", "indexes": [], "listRule": null, "name": "berichten_bekijken", "system": false, "type": "view", "updateRule": null, "viewQuery": "SELECT berichten.id, berichten.bericht, berichten.verstuurd, gebruikers.naam FROM berichten\nINNER JOIN gebruikers ON gebruikers.id = berichten.afzender", "viewRule": null }); return app.save(collection); }, (app) => { const collection = app.findCollectionByNameOrId("pbc_147944274"); return app.delete(collection); })