Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 581 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 581 Bytes

Development

Launch MySQL Dev Instance

# Fill .env before running MySQL Instance
cd mysql
docker-compose up -d

Setup golang-migrate

make setup

Run the service

# Make sure that you have set DSN of active MySQL instance in .env
go run svc/cmd/dev/main.go

Migrations

Run Migrations

# Migrate all the way up
make migrate_up

# Migrate one step down
make migrate_down

Create New Migration

# Replace MIGRATION_NAME with the name of the migration
make create_migration NAME="MIGRATION_NAME"