Hello from MCP server
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_3707864393")
// update collection data
unmarshal({
"indexes": [
"CREATE UNIQUE INDEX `idx_kRQrbkQNxa` ON `tiers` (\n `refId`,\n `org`\n)",
"CREATE UNIQUE INDEX `idx_UqJNEhfnOS` ON `tiers` (\n `rank`,\n `tierSets`\n)"
]
}, collection)
// 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)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_3707864393")
// update collection data
unmarshal({
"indexes": [
"CREATE UNIQUE INDEX `idx_kRQrbkQNxa` ON `tiers` (\n `refId`,\n `org`\n)",
"CREATE UNIQUE INDEX `idx_UqJNEhfnOS` ON `tiers` (\n `rank`,\n `tierSet`\n)"
]
}, collection)
// update field
collection.fields.addAt(3, new Field({
"cascadeDelete": false,
"collectionId": "pbc_3716680089",
"hidden": false,
"id": "relation457990096",
"maxSelect": 999,
"minSelect": 0,
"name": "tierSet",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
}))
return app.save(collection)
})