Files
online-backend/Makefile
GuwandykA 164c195fdf Use example database credentials in config and Docker setup.
Replace bank_db/bank_admin with example_db/example_user in config.yaml, docker-compose, Makefile, and README so pushed templates do not expose real credentials.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:14:10 +05:00

20 lines
799 B
Makefile
Executable File

# Dependencies
dependencies:
docker-compose -f ./deployment/dependencies/docker-compose.yaml up -d
# Database
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-rollback:
migrate -database 'postgres://example_user:example_password@localhost:5424/example_db?sslmode=disable' -path db/migrations down
# ---- for linux
# migrate:
# migrate -database 'postgresql://bank_admin:bank@#23#@_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations up
# migrate-rollback:
# migrate -database 'postgresql://bank_admin:bank@#23#@_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations down