Merge feature/fix-db-init-makefile into development
Some checks failed
CI / lint-and-test (push) Has been cancelled
Some checks failed
CI / lint-and-test (push) Has been cancelled
This commit is contained in:
6
Makefile
6
Makefile
@@ -69,11 +69,7 @@ docker-logs: ## View container logs
|
|||||||
|
|
||||||
db-init: ## Initialize database schema
|
db-init: ## Initialize database schema
|
||||||
@echo "$(GREEN)Initializing database schema...$(NC)"
|
@echo "$(GREEN)Initializing database schema...$(NC)"
|
||||||
@if [ -f scripts/db/init.sh ]; then \
|
$(PYTHON) scripts/db/init_schema.py
|
||||||
bash scripts/db/init.sh; \
|
|
||||||
else \
|
|
||||||
echo "$(YELLOW)scripts/db/init.sh not found - skipping$(NC)"; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
db-reset: ## Drop and recreate database (DESTRUCTIVE)
|
db-reset: ## Drop and recreate database (DESTRUCTIVE)
|
||||||
@echo "$(YELLOW)WARNING: This will delete all data!$(NC)"
|
@echo "$(YELLOW)WARNING: This will delete all data!$(NC)"
|
||||||
|
|||||||
Reference in New Issue
Block a user