fp/services/pocketbase/pb_migrations/1762408434_updated_vtubers.js
CJ_Clippy 6caf2dbcc3
Some checks failed
ci / test (push) Failing after 9m42s
fp/our CI/CD / build (push) Successful in 1m19s
add /vods and /vt/:slug/vods
2025-11-08 12:36:26 -08:00

29 lines
689 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_3872109612")
// remove field
collection.fields.removeById("relation3825607268")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_3872109612")
// add field
collection.fields.addAt(3, new Field({
"cascadeDelete": false,
"collectionId": "pbc_144770472",
"hidden": false,
"id": "relation3825607268",
"maxSelect": 999,
"minSelect": 0,
"name": "vods",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
})