revert_to_migration
Reverts database schema migrations up to a specified target using applied migration filenames, allowing precise control over schema rollbacks in PocketBase MCP Server.
Instructions
Revert migrations up to a specific target.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
appliedMigrations | No | Array of already applied migration filenames. | |
targetMigration | Yes | Name of the migration to revert to (exclusive). Use empty string to revert all. |
Input Schema (JSON Schema)
{
"properties": {
"appliedMigrations": {
"description": "Array of already applied migration filenames.",
"items": {
"type": "string"
},
"type": "array"
},
"targetMigration": {
"description": "Name of the migration to revert to (exclusive). Use empty string to revert all.",
"type": "string"
}
},
"required": [
"targetMigration"
],
"type": "object"
}