From bce7871c418a6b700fd8a3ae794bf4e875c79625 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Tue, 2 Dec 2025 12:17:17 +0000 Subject: [PATCH] add reset target to make file --- common/nyxd-scraper-psql/Makefile | 3 +++ common/nyxd-scraper-psql/README.md | 1 + nym-data-observatory/Makefile | 3 +++ 3 files changed, 7 insertions(+) diff --git a/common/nyxd-scraper-psql/Makefile b/common/nyxd-scraper-psql/Makefile index 67eda86cd1..408dfb2fbc 100644 --- a/common/nyxd-scraper-psql/Makefile +++ b/common/nyxd-scraper-psql/Makefile @@ -23,6 +23,9 @@ dev-db: test-db-up test-db-wait test-db-migrate ## Start PostgreSQL for developm @echo "PostgreSQL is running on port 5433" @echo "Connection string: $(TEST_DATABASE_URL)" +.PHONY: dev-db-restart +dev-db-restart: clean-db dev-db + # --- Docker Compose Targets --- .PHONY: test-db-up test-db-up: ## Start the PostgreSQL test database in the background diff --git a/common/nyxd-scraper-psql/README.md b/common/nyxd-scraper-psql/README.md index bfa3e04fe2..d2946ec416 100644 --- a/common/nyxd-scraper-psql/README.md +++ b/common/nyxd-scraper-psql/README.md @@ -50,6 +50,7 @@ make build-pg # Build with PostgreSQL make psql # Connect to running PostgreSQL make clean # Clean build artifacts make clean-db # Stop database and clean volumes +make dev-db-restart # Stop database, clean volumes, rebuild test database and restart ``` ## Environment Variables diff --git a/nym-data-observatory/Makefile b/nym-data-observatory/Makefile index 30d5936a10..017263df03 100644 --- a/nym-data-observatory/Makefile +++ b/nym-data-observatory/Makefile @@ -23,6 +23,9 @@ dev-db: test-db-up test-db-wait test-db-migrate ## Start PostgreSQL for developm @echo "PostgreSQL is running on port 5433" @echo "Connection string: $(TEST_DATABASE_URL)" +.PHONY: dev-db-restart +dev-db-restart: clean-db dev-db + # --- Docker Compose Targets --- .PHONY: test-db-up test-db-up: ## Start the PostgreSQL test database in the background