Hello from MCP server
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_3707864393")
// update field
collection.fields.addAt(3, new Field({
"cascadeDelete": false,
"collectionId": "pbc_3716680089",
"hidden": false,
"id": "relation457990096",
"maxSelect": 1,
"minSelect": 0,
"name": "tierSets",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_3707864393")
// update field
collection.fields.addAt(3, new Field({
"cascadeDelete": false,
"collectionId": "pbc_3716680089",
"hidden": false,
"id": "relation457990096",
"maxSelect": 999,
"minSelect": 0,
"name": "tierSets",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
})