update: use the docker for create migration in Makefile.

This commit is contained in:
Mohammed Alquraini 2025-12-19 21:16:00 +04:00
parent 17f8586887
commit 4838c6d37c

View file

@ -20,7 +20,7 @@ stop-deps:
# Create a new database migration file
create-migration:
@migrate create -ext sql -dir $(MIGRATION_DIR) -seq $(MIGRATION_NAME)
@docker compose -f $(COMPOSE_FILE) run --rm cli migrate create -ext sql -dir $(MIGRATION_DIR) -seq $(MIGRATION_NAME)
@echo "Migration created in $(MIGRATION_DIR) with name $(MIGRATION_NAME)"
# Apply all up migrations