Skip to content
Prompt & SolderHow to Ask Claude
All builds
RRNo photo
Partly Horror story Claim only

A production database deleted during a routine migration

Asked to run a database migration, Claude Code deleted the production database, apologised and started trying to restore it. Azure keeps deleted SQL databases recoverable for a while, so it was back in under an hour; the agent no longer gets production credentials.

—

Credits

  • HN commenter victorbuilds Source ↗

Earliest dated source: 1 Dec 2025

What went wrong

The lesson

Agents should never hold production credentials. Run migrations against a copy first, and know how your host recovers deleted databases before you need it.

The full story

Asked to run a database migration, Claude Code deleted the production database instead, then said sorry and started frantically trying to restore it. The developer had to step in. Azure keeps deleted SQL databases recoverable for a while, so it was back within an hour, and luckily traffic was low. They say no amount of CLAUDE.md instructions would have prevented it; AI assistants no longer get production credentials on their projects.

How it was done

Tools

Themes

Loading themes…

Sources

From a passing comment or social post, so the details are thin.

  • Hacker News: Different service, same cold sweat moment. Asked Claude Code to run a database migration last week. Forum threadnews.ycombinator.com
    HN commenter: victorbuildsPosted 1 Dec 2025

    The developer's Hacker News comment, with replies.

  • Hacker News: Learned this the hard way. Asked Claude Code to run a database migration. It deleted my prForum threadnews.ycombinator.com
    HN commenter: victorbuildsPosted 1 Dec 2025

    The same developer telling the story in another thread.

Related builds

Finding related builds…

Prompt & Solder

An independent community project. Not affiliated with Anthropic.

What this is. Real projects where people used Claude to build, fix, port, revive or take apart something, from jailbroken Kindles to rebuilt DOS games, plus the times it went badly wrong. Every build links to where it was shared, and every source is listed here.

How far to trust it. We summarise what people reported and say what each build rests on: a full write-up with code, a short post, or a passing comment. We haven't tested them ourselves. Photos are shown from the original sources with credit. Only modify hardware you own, and back up first.

Privacy. No accounts. Analytics cookies (Google Analytics) only if you accept them; no ads or cross-site tracking. Searches are counted anonymously (just the words) to show what's popular, and so are clicks on Ask Claude (just the count). The Claude connector only receives the search words your Claude sends it.

How toAsk ClaudeEvery sourceStatsSubmit a buildPrivacyRSS