refactor: Rename database management commands in Justfile for consistency

This commit is contained in:
2026-03-07 09:44:35 +07:00
parent bbf27d0e87
commit 3be6c0d732

View File

@@ -36,16 +36,16 @@ publish db=VARIANT:
### Tests ### ### Tests ###
# Start the database and wait until it's healthy # Start the database and wait until it's healthy
db-up db=VARIANT: up db=VARIANT:
just build {{db}} just build {{db}}
docker compose -f {{db}}/compose.yml up -d --wait docker compose -f {{db}}/compose.yml up -d --wait
# Stop the database container but preserve data volumes # Stop the database container but preserve data volumes
db-down db=VARIANT: down db=VARIANT:
docker compose -f {{db}}/compose.yml down docker compose -f {{db}}/compose.yml down
# Stop the database container and remove data volumes # Stop the database container and remove data volumes
db-clean db=VARIANT: clean db=VARIANT:
docker compose -f {{db}}/compose.yml down -v docker compose -f {{db}}/compose.yml down -v
@@ -59,5 +59,5 @@ test db=VARIANT:
# Run tests against a Postgres database # Run tests against a Postgres database
_test-postgres: _test-postgres:
#!/usr/bin/env bash #!/usr/bin/env bash
just db-up postgres just up postgres
docker compose -f postgres/compose.yml exec postgres pg_isready -U ${POSTGRES_USER} docker compose -f postgres/compose.yml exec postgres pg_isready -U ${POSTGRES_USER}