update: use the docker for create migration in Makefile.
This commit is contained in:
parent
17f8586887
commit
4838c6d37c
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ stop-deps:
|
||||||
|
|
||||||
# Create a new database migration file
|
# Create a new database migration file
|
||||||
create-migration:
|
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)"
|
@echo "Migration created in $(MIGRATION_DIR) with name $(MIGRATION_NAME)"
|
||||||
|
|
||||||
# Apply all up migrations
|
# Apply all up migrations
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue