Database migration review
The agent checks a migration script for locking and data size, tests it on a copy using size statistics and lists risks with safer steps. The DBA approves.
What the agent does
- 1
Read the migration.
- 2
Check locking and size.
- 3
Test it on a copy.
- 4
List risks.
- 5
Suggest safer steps. → DBA approves
Enough to decide?
Proposed pattern- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- misses production size effects; use size stats
- Reviewer
- Not yet independently reviewed
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.30 per run · $0.016 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.11
- Typical
- $0.016 per runPer 100 runs: $1.63
- Large model
- $0.30 per runPer 100 runs: $30.00
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 4,000 input tokens per call (it reads documents or data)
- 500 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- database, code-repo
- Who approves
- DBA approves
- What to log
- every action it proposes and the decision taken
- When to stop
- misses production size effects; use size stats
Why it is worth it
A migration that locks a big table can take a site down. Reviewing it on a copy first is cheap insurance.
Start this week
- Give the agent the migration and size statistics.
- Let it test on a copy and list risks with safer steps.
- The DBA approves.
Watch out for
Production locks are the risk. Test on a copy.
Measure this
Migration incidents.
About this entry
Proposed pattern Checked 2026-11-27 Next check 2026-12-25 v2026-11-26.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Not checked yet | — | — | — |
Limitations
- This is a pattern written from how the job is usually done. We have not run it.
- Steps, tools and risks are general. Your systems and rules will differ.
- Test it with made-up or public data before using real data.
- Not checked yet: workflow run, tool links, outside evidence.
Change history
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- No outside evidence yet; this is our own analysis.
Spec versions
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping developer. Goal: Database migration review. The agent checks a migration script for locking and data size, tests it on a copy using size statistics and lists risks with safer steps. The DBA approves. Work through these steps and show your result for each: 1. Read the migration. 2. Check locking and size. 3. Test it on a copy. 4. List risks. 5. Suggest safer steps. Tools or data I can give you: database, code-repo. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: DBA approves. Watch for: misses production size effects; use size stats.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for developer. TASK: Database migration review. SUMMARY: The agent checks a migration script for locking and data size, tests it on a copy using size statistics and lists risks with safer steps. The DBA approves. PROCEDURE: 1. Read the migration. 2. Check locking and size. 3. Test it on a copy. 4. List risks. 5. Suggest safer steps. HUMAN CHECKPOINT: DBA approves GUARDRAILS: misses production size effects; use size stats RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "database-migration-reviewer-0088",
"goal": "Database migration review",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"database",
"code-repo"
],
"plan": [
"Read the migration.",
"Check locking and size.",
"Test it on a copy.",
"List risks.",
"Suggest safer steps."
],
"human_in_the_loop": "DBA approves",
"guardrails": "misses production size effects; use size stats",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "On demand (manual start)",
"steps": [
{
"n": 1,
"do": "Read the migration."
},
{
"n": 2,
"do": "Check locking and size."
},
{
"n": 3,
"do": "Test it on a copy."
},
{
"n": 4,
"do": "List risks."
},
{
"n": 5,
"do": "Suggest safer steps."
}
],
"connects": [
"database",
"code-repo"
],
"approval": "DBA approves",
"stop_on": "misses production size effects; use size stats"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "database-migration-reviewer-0088",
"goal": "Database migration review",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"database",
"code-repo"
],
"plan": [
"Read the migration.",
"Check locking and size.",
"Test it on a copy.",
"List risks.",
"Suggest safer steps."
],
"human_in_the_loop": "DBA approves",
"guardrails": "misses production size effects; use size stats",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Database migration review. The agent checks a migration script for locking and data size, tests it on a copy using size statistics and lists risks with safer steps. The DBA approves. Work through these steps and show your result for each: 1. Read the migration. 2. Check locking and size. 3. Test it on a copy. 4. List risks. 5. Suggest safer steps. Tools or data I can give you: database, code-repo. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: DBA approves. Watch for: misses production size effects; use size stats.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping developer. Goal: Database migration review. The agent checks a migration script for locking and data size, tests it on a copy using size statistics and lists risks with safer steps. The DBA approves. Work through these steps and show your result for each: 1. Read the migration. 2. Check locking and size. 3. Test it on a copy. 4. List risks. 5. Suggest safer steps. Tools or data I can give you: database, code-repo. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: DBA approves. Watch for: misses production size effects; use size stats.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "database-migration-reviewer-0088",
"goal": "Database migration review",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"database",
"code-repo"
],
"plan": [
"Read the migration.",
"Check locking and size.",
"Test it on a copy.",
"List risks.",
"Suggest safer steps."
],
"human_in_the_loop": "DBA approves",
"guardrails": "misses production size effects; use size stats",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "database-migration-reviewer-0088",
"goal": "Database migration review",
"persona": [
"developer"
],
"autonomy": "assist",
"tools": [
"database",
"code-repo"
],
"plan": [
"Read the migration.",
"Check locking and size.",
"Test it on a copy.",
"List risks.",
"Suggest safer steps."
],
"human_in_the_loop": "DBA approves",
"guardrails": "misses production size effects; use size stats",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- For
- developer
- Industry
- software
- Autonomy
- assist
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- on demand
- Data touched
- read-only
- Needs approval
- DBA approves
- What it costs to run
- $0.016 per run with a mid-priced model
- Evidence
- ID
UC-0088
Compare routes for this job
Share this comparison| For this job | Claude | ChatGPT | Claude Code |
|---|---|---|---|
| What you do by hand | Paste or attach the input each time, check the answer, and carry the result to where it goes yourself. | Set up the assistant once with your instructions and files. Then paste or attach each new input, check the answer and carry the result on. | Describe the task, then review every change it proposes before you accept it. |
| Human checkpoint | DBA approves | ||
| Typical API cost (same for every route) | $0.016 per run with a mid-priced model checked 2026-11-25 · pricing source | ||
| Learning curve | Point and click | Point and click | Terminal |
| Price model | free tier | free tier | paid |
| Where your data goes | What you type and upload goes to Anthropic's servers and is handled under its terms. Check its data settings before you use real work data. | What you type and upload goes to OpenAI's servers and is handled under its terms. Check its data settings before you use real work data. | Your code and prompts go to Anthropic, or to the cloud provider you set it up with, under that provider's terms. |
| Before you start | An account on the website. The free plan is enough to try it. | An account on the website. The free plan is enough to try it. | A paid Claude plan or API credit, then install it and open a terminal in your project. |
| Evidence for this route | Proposed pattern | Proposed pattern | Proposed pattern |
| Open | Open in run panel Tool page | Open in run panel Tool page | Open in run panel Tool page |
Where to go from here
All developer use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
SQL query review for correctness, cost and injection
The agent reads the query plan, checks for correctness, cost and injection risk and suggests a rewrite tested on a copy. You decide.
Pre-release checks for store submission
The agent checks the build's version and permissions and the store assets against a checklist and lists gaps before submission. You submit.
Product photo rule check
The agent tests product photos against the marketplace's size, background and compliance rules, lists the ones that fail and suggests fixes, quoting the rule each time. You fix the photos.