Skip to content

Commit a8776d5

Browse files
committed
adjust for golang-migrate
1 parent b33fc03 commit a8776d5

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

taco/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ atlas-diff-all: ## Generate migrations for all databases (use: make atlas-diff-a
115115
@echo "\n📊 PostgreSQL..." && atlas migrate diff $(NAME) --env postgres
116116
@echo "\n📊 MySQL..." && atlas migrate diff $(NAME) --env mysql
117117
@echo "\n📊 SQLite..." && atlas migrate diff $(NAME) --env sqlite
118+
@echo "\n🔄 Renaming migration files for golang-migrate compatibility..."
119+
@find internal/query/migration/atlas/migrations -name "*.sql" ! -name "*.up.sql" ! -name "*.down.sql" -type f | while read f; do mv "$$f" "$${f%.sql}.up.sql"; done
118120
@$(MAKE) atlas-hash-all
119121
@echo "\n✅ All migrations generated successfully!"
120122

0 commit comments

Comments
 (0)