diff --git a/Makefile b/Makefile index e69de29..b6cfddb 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,10 @@ +run/api: + go run ./cmd/api + +db/migrations/up: + @echo 'Running up migrations...' + migrate -path ./migrations -database ${GREENLIGHT_DB_DSN} up + +db/migrations/new: + @echo 'Creating migration files for ${name}...' + migrate create -seq -ext=.sql -dir=./migrations ${name} \ No newline at end of file