Ship zombie reconcile, S3 covers, session end/drill-down, rooms ops, and refresh README for production. Co-authored-by: Cursor <cursoragent@cursor.com>
84 lines
1.8 KiB
JavaScript
84 lines
1.8 KiB
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_596514221")
|
|
|
|
// add field
|
|
collection.fields.addAt(13, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text1604895770",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "room_pk",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(14, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text1269031876",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "end_reason",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(15, new Field({
|
|
"exceptDomains": null,
|
|
"hidden": false,
|
|
"id": "url1189499079",
|
|
"name": "cover_url",
|
|
"onlyDomains": null,
|
|
"presentable": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "url"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(16, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text1065927398",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "cover_path",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
return app.save(collection)
|
|
}, (app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_596514221")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text1604895770")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text1269031876")
|
|
|
|
// remove field
|
|
collection.fields.removeById("url1189499079")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text1065927398")
|
|
|
|
return app.save(collection)
|
|
})
|