Schema diff
Compare the schema a branch produces against main so a migration is
reviewed against what it actually changes.
Steps
- Run
make schema-dump BRANCH=mainto writebuild/schema-main.sql. - Run
make schema-dumpon the current checkout. - Diff the two dumps with `git diff --no-index build/schema-main.sql
build/schema.sql`.
- Read the diff against the migration in
migrations/. Every statement
in the diff must trace to a line in the migration.
Report any statement in the diff that the migration does not explain.