fp/services/pocketbase/pb_migrations/1764648351_updated_vods.js
CJ_Clippy 9a708fce1d
Some checks failed
ci / test (push) Failing after 2m41s
fp/our CI/CD / build (push) Successful in 36s
add vibeui player
2025-12-03 03:59:28 -08:00

49 lines
1.1 KiB
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_144770472")
// remove field
collection.fields.removeById("text3367203181")
// add field
collection.fields.addAt(20, new Field({
"hidden": false,
"id": "file3367203181",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "hlsPlaylist",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_144770472")
// add field
collection.fields.addAt(20, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text3367203181",
"max": 0,
"min": 0,
"name": "hlsPlaylist",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// remove field
collection.fields.removeById("file3367203181")
return app.save(collection)
})