go-cook/Justfile

7 lines
299 B
Makefile
Raw Normal View History

2024-04-21 10:29:46 -07:00
# Brings the database up to the current migration
2024-03-21 22:42:03 -07:00
migrate-up:
2024-04-21 10:29:46 -07:00
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations up
2024-03-21 22:42:03 -07:00
2024-04-21 10:29:46 -07:00
# Rolls back one migration at a time
2024-03-21 22:42:03 -07:00
migrate-down:
2024-04-21 10:29:46 -07:00
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations down