Files
pocketbase/pb_migrations/1770065313_updated_mc_profiles.js
2026-02-04 00:21:37 +00:00

25 lines
573 B
JavaScript

/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_2032083498")
// add field
collection.fields.addAt(6, new Field({
"hidden": false,
"id": "bool3814588639",
"name": "default",
"presentable": false,
"required": false,
"system": false,
"type": "bool"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_2032083498")
// remove field
collection.fields.removeById("bool3814588639")
return app.save(collection)
})