Files
simrsx-be/cmd/satusehat-migration/Makefile
2025-09-16 11:44:36 +07:00

19 lines
299 B
Makefile

# Makefile for Atlas migrations
# Default environment
ENV ?= gorm
.PHONY: diff apply hash
## Generate a new migration diff
diff:
atlas migrate diff --env $(ENV)
## Apply migrations to the database
apply:
atlas migrate apply --env $(ENV)
## Calculate the schema hash
hash:
atlas migrate hash