Create a new go-migrate migration pair for: $ARGUMENTS
- •Find the latest migration version number in
migrations/ - •Increment the version: if latest is
000005, next is000006 - •Create
migrations/{version}_{description}.up.sql - •Create
migrations/{version}_{description}.down.sql
Rules:
- •Use PostgreSQL 18 syntax
- •Use
uuidv7()for primary keys (notgen_random_uuid()) - •Include
created_at TIMESTAMPTZ DEFAULT now()andupdated_at TIMESTAMPTZ DEFAULT now() - •The
.down.sqlmust fully reverse the.up.sql - •Follow the schema conventions in @docs/03-DATABASE_DESIGN.md