- Docker and Docker Compose installed
- PostgreSQL client tools (optional, for manual database access)
Follow the instructions from the official golang-migrate repository to install the CLI tool.
- export POSTGRES_URL=postgres://postgres:postgres@localhost:5438/learn-go?sslmode=disable
- migrate -database ${POSTGRES_URL} -path internal/db/migrations up