fp/services/pocketbase/pb_migrations/1764758197_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("file2376425770")
// remove field
collection.fields.removeById("file4278982190")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_144770472")
// add field
collection.fields.addAt(18, new Field({
"hidden": false,
"id": "file2376425770",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "funscriptVibrate",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
// add field
collection.fields.addAt(19, new Field({
"hidden": false,
"id": "file4278982190",
"maxSelect": 1,
"maxSize": 0,
"mimeTypes": [],
"name": "funscriptThrust",
"presentable": false,
"protected": false,
"required": false,
"system": false,
"thumbs": [],
"type": "file"
}))
return app.save(collection)
})