Files
simrsx-be/cmd/main-migration/Makefile
2025-09-12 08:57:05 +07:00

19 lines
311 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 schema hash --env $(ENV)