db changes

This commit is contained in:
June 2025-08-13 11:11:54 +12:00
parent 4f08b122e6
commit 5577506076
Signed by: breadone
GPG Key ID: FDC19FE143200483

View File

@ -0,0 +1,28 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_4284789913")
// remove field
collection.fields.removeById("relation3666391351")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_4284789913")
// add field
collection.fields.addAt(3, new Field({
"cascadeDelete": false,
"collectionId": "pbc_842702175",
"hidden": false,
"id": "relation3666391351",
"maxSelect": 1,
"minSelect": 0,
"name": "recipe",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
})