This project demonstrates how to combine atlas and goose for database schema and data migration.
- We use Gorm to define database tables
- We use Atlas to automatically generate a schema migration plan
- We use Goose to apply our migration files
- We use Goose to generate
Gobased migration files for data migrations - We build a custom
Goosebinary to supportGobased migrations
You can read the article on this project here
- Golang 1.23.1
- Docker
- Docker Compose
- Clone this repository
- Run
go mod tidy