Restore bank_db credentials and ignore local database artifacts.

Revert example database settings in Docker and docs, fix Makefile migrate target, and gitignore local bank_db dumps and schema files.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 14:17:48 +05:00
parent 164c195fdf
commit 3ba5597a51
5 changed files with 16 additions and 11 deletions

View File

@@ -7,10 +7,10 @@ create-migration:
migrate create -ext sql -dir db/migrations -tz Local init
# --- for Macos
migrate:
migrate -database 'postgres://example_user:example_password@localhost:5424/example_db?sslmode=disable' -path db/migrations up
migrate:
migrate -database 'postgres://bank_admin:bank@#23#@_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations up
migrate-rollback:
migrate -database 'postgres://example_user:example_password@localhost:5424/example_db?sslmode=disable' -path db/migrations down
migrate -database 'postgres://bank_admin:bank@#23#@_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations down
# ---- for linux
# migrate: