Database, migrations and schema
Migrations failing, divergent schema, or connection errors.
Last updated
Was this helpful?
Migrations failing, divergent schema, or connection errors.
Migration fails on deploy.
App starts, but gives error of non-existent table/column.
Database connection errors.
Confirm in which environment the error occurs.
Check the most recently applied migration.
See if there is a mismatch between expected schema and actual schema.
Correct credentials/URL?
Network/VPC open (if applicable)?
Does a migration depend on another that didn't run?
Does a migration run twice and break?
Altering a column with old data often breaks.
Constraints (NOT NULL / FK) require backfill.
Column/table error: review the last migration and the schema.
Constraint failed: perform backfill before applying constraint.
Connection: validate secrets and network permissions.
Migration repeatedly breaks in the pipeline.
Corruption/inconsistent data.
Error only in Prod and not reproducible in Staging.
Before escalating, gather this evidence. It greatly reduces back-and-forth.
Project and environment (Dev/Staging/Prod).
Time of the error (with timezone).
Steps to reproduce (short and deterministic).
Full error message (no cropped screenshots).
Screenshot of the screen (if applicable).
Browser console (relevant errors and warnings).
Tab Network (request that failed + status + payload, if there is no sensitive data).
If there is a requestId, traceId or execution link, include it as well.
Last updated
Was this helpful?
Was this helpful?
