Skip to content

Commit

Permalink
build: Include the generate as part of migrations
Browse files Browse the repository at this point in the history
Include the `go generate ./...` in the db migrations steps

`make db-migrations` now generates the ent files from schemes.

Signed-off-by: Kairo Araujo <[email protected]>
  • Loading branch information
kairoaraujo committed Apr 10, 2024
1 parent 7f1ebf7 commit 7355f33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ docs: ## Generate swagger docs

.PHONY: db-migrations
db-migrations: ## Run the migrations for the database
@go generate ./...
@atlas migrate diff mysql --dir "file://ent/migrate/migrations/mysql" --to "ent://ent/schema" --dev-url "docker://mysql/8/dev"
@atlas migrate diff pgsql --dir "file://ent/migrate/migrations/pgsql" --to "ent://ent/schema" --dev-url "docker://postgres/16/dev?search_path=public"

Expand Down

0 comments on commit 7355f33

Please sign in to comment.