Skip to content

migrations capability

migrations adds database schema migration support to your Go service using golang-migrate, with up/down files and version tracking.

  • Migration runner
  • Up/down migration files
  • Version tracking

Any service with a relational database needs migrations. Schema changes without versioned migrations are risky in production — you lose repeatability, rollback capability, and team coordination. Add migrations alongside postgres or mysql from the start.

Suggests: docker

Terminal window
verikt new my-service --language go --cap postgres,migrations
# or add to an existing service:
verikt add migrations

postgres

PostgreSQL — the most common pairing with migrations.

mysql

MySQL with versioned schema management.

docker

Local database instance for running migrations in dev.