Add isolated Shorts OAuth/clip/upload worker (default off), youtube-svc + group poller, Beijing time UX, and SHORTS.md. Co-authored-by: Cursor <cursoragent@cursor.com>
68 lines
1.4 KiB
JavaScript
68 lines
1.4 KiB
JavaScript
/// <reference path="../pb_data/types.d.ts" />
|
|
migrate((app) => {
|
|
const collection = app.findCollectionByNameOrId("pbc_596514221")
|
|
|
|
// add field
|
|
collection.fields.addAt(17, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text961728715",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "platform",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(18, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text4266973511",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "group_id",
|
|
"pattern": "",
|
|
"presentable": false,
|
|
"primaryKey": false,
|
|
"required": false,
|
|
"system": false,
|
|
"type": "text"
|
|
}))
|
|
|
|
// add field
|
|
collection.fields.addAt(19, new Field({
|
|
"autogeneratePattern": "",
|
|
"hidden": false,
|
|
"id": "text700514382",
|
|
"max": 0,
|
|
"min": 0,
|
|
"name": "video_id",
|
|
"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("text961728715")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text4266973511")
|
|
|
|
// remove field
|
|
collection.fields.removeById("text700514382")
|
|
|
|
return app.save(collection)
|
|
})
|