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