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

106 lines
2.2 KiB
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_144770472")
// add field
collection.fields.addAt(19, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text2376425770",
"max": 0,
"min": 0,
"name": "funscriptVibrate",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(20, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text4278982190",
"max": 0,
"min": 0,
"name": "funscriptThrust",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(21, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text7357270",
"max": 0,
"min": 0,
"name": "audioIntegratedLufs",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(22, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text513636770",
"max": 0,
"min": 0,
"name": "audioLoudnessRange",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(23, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text2917960678",
"max": 0,
"min": 0,
"name": "audioTruePeak",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_144770472")
// remove field
collection.fields.removeById("text2376425770")
// remove field
collection.fields.removeById("text4278982190")
// remove field
collection.fields.removeById("text7357270")
// remove field
collection.fields.removeById("text513636770")
// remove field
collection.fields.removeById("text2917960678")
return app.save(collection)
})