separate atlas command

This commit is contained in:
dpurbosakti
2025-09-12 08:57:05 +07:00
parent dfaf6e8d29
commit 20bc8419d0
10 changed files with 155 additions and 130 deletions
+18
View File
@@ -0,0 +1,18 @@
# 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)