All migrations are located in the migrations/ folder. You can run them either directly with go run or using the Makefile shortcuts.
Start the dev server with hot-reload (using Air):
make devSpin up Postgres + pgAdmin (if configured in docker-compose.yml):
make db-upStop the database:
make db-downmake migrate-up
# or
go run cmd/migrate/main.go -direction upgo run cmd/migrate/main.go -direction up -steps 1make migrate-down
# or
go run cmd/migrate/main.go -direction downgo run cmd/migrate/main.go -direction down -steps 1
⚠️ Make sure yourDATABASE_URLis set correctly in.envbefore running migrations or starting the server.