VibeDict

Database Migration

Database Migration

A way to record changes to your database's table structure (adding columns, renaming, etc.) and apply them in order.

💡 It's a moving checklist. If you write down what went where, you can move the exact same way into another house (server).

🤖 Say this to your AI

Create a migration that adds a phone column to the users table. First check that no existing data will be deleted, and show me what will change before you run it.

The key word is ‘Database Migration’. Including it helps AI understand you much more precisely.

📌 Good to know

Migrations with 'drop', 'delete', or 'reset' in them can delete data. Always back up before running them.

When to use it

  • When you add a new column to a table (like a phone number)
  • When the AI wants to run 'migrate' or 'db push'
  • When your dev database and real database have different structures

Also called: migration, migrate, db push, schema change, change table, add column, prisma migrate, drizzle-kit

Related terms