pocketbase-mcp-server
migrate_collection
Migrate collection schema with data preservation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
dataTransforms | No | Field transformation mappings | |
newSchema | Yes | New collection schema |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"dataTransforms": {
"description": "Field transformation mappings",
"type": "object"
},
"newSchema": {
"description": "New collection schema",
"items": {
"properties": {
"name": {
"type": "string"
},
"options": {
"type": "object"
},
"required": {
"type": "boolean"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"required": [
"collection",
"newSchema"
],
"type": "object"
}