FrançaisChoose your hat

Procedure · Developer

Change the database

Change the structure or the content of a database safely, with a verified backup, a migration kept in the repository, additive steps first, and a stop before anything is deleted.

Specialties: Website or web app, Mobile app · Checked 6 December 2026

Steps the AI follows

  1. Read the decisions
  2. Classify the change
  3. Write a migration
  4. Try it away from live data
  5. Back up first
  6. Split non-additive changes
  7. Check the queries
  8. Stop and ask
  9. Verify after
  10. Report

Reference sheets it uses

  • Backups and database changes
    How to back up PostgreSQL, SQLite and managed databases, why a backup must be verified, and how to change a schema in safe steps.
  • Security checkpoints (OWASP)
    The OWASP Top 10:2025 categories and the concrete controls to check, by theme, before opening a site or app.

The full text of each step, the checks and the reference sheets are served to your AI by the hat’s MCP server, once you subscribe.

Sources

  1. PostgreSQL documentation: SQL Dump
  2. SQLite: Online Backup API
  3. Cloudflare D1: Time Travel
  4. OWASP Top 10:2025