Hello from MCP server
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_4141165654")
// remove field
collection.fields.removeById("text4232930610")
// remove field
collection.fields.removeById("text427927149")
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_4141165654")
// add field
collection.fields.addAt(2, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text4232930610",
"max": 0,
"min": 0,
"name": "collection",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
// add field
collection.fields.addAt(3, new Field({
"autogeneratePattern": "",
"hidden": false,
"id": "text427927149",
"max": 0,
"min": 0,
"name": "operation",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}))
return app.save(collection)
})