separate atlas command
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user