Bytebase: create a SQL change plan
bytebase_create_planDraft a SQL change plan for a database without executing it. Creates a Sheet and Plan for human review and approval, enabling safe write SQL changes.
Instructions
Draft a titled SQL change plan against one database: creates a Sheet (the SQL text) and a Plan (the proposal) in Bytebase. This does NOT open an Issue and does NOT run the SQL — a plan only becomes executable after a human opens it in the Bytebase UI, submits it for review, and it is approved, at which point Bytebase creates the rollout automatically. Available even when BYTEBASE_ALLOW_WRITE is unset, since nothing runs until a human approves it — this is the safe route for write SQL that bytebase_query blocks in read-only mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Plan title, shown in the Bytebase Plans list. | |
| database | Yes | Database reference, e.g. "prod/aurora-prod/salla". | |
| statement | Yes | The SQL to run. | |
| description | No | Longer explanation of the change. | |
| priorBackup | No | Ask Bytebase to back up affected rows automatically before the change runs (default false). |