Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define load_env
endef

help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?#+ .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}'

install: ## Install dependencies into .venv
uv sync --no-install-project
Expand Down Expand Up @@ -113,7 +113,7 @@ migration: ## Create or update the alembic migration
uv run -m alembic upgrade head
uv run -m alembic revision --autogenerate -m "$(MESSAGE)"

dump: # Dump the local database to file
dump: ## Dump the local database to file
docker compose up --wait db
docker compose exec \
-e DUMPFILE=$${DUMPFILE:-/data/db_$$APP_VERSION.dump} \
Expand All @@ -123,7 +123,7 @@ dump: # Dump the local database to file
echo "Dumping database $$PGDATABASE from $$PGHOST:$$PGPORT to $$DUMPFILE" && \
pg_dump --dbname $$PGDATABASE -Fc -f $$DUMPFILE'

restore: # Delete and restore the local database from file
restore: ## Delete and restore the local database from file
docker compose up --wait db
docker compose exec \
-e DUMPFILE=$${DUMPFILE:-/data/db_$$APP_VERSION.dump} \
Expand Down
2 changes: 1 addition & 1 deletion alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run_migrations_online() -> None:
context.configure(
connection=connection,
target_metadata=target_metadata,
transaction_per_migration=True,
transaction_per_migration=False,
process_revision_directives=process_revision_directives,
)

Expand Down