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>
20 lines
794 B
Makefile
Executable File
20 lines
794 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://bank_admin:bank@#23#@_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations up
|
|
migrate-rollback:
|
|
migrate -database 'postgres://bank_admin:bank@#23#@_password@localhost:5424/bank_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
|