cleaner clean-tables
This commit is contained in:
parent
bff1c7eec7
commit
58eb7bea87
6
Makefile
6
Makefile
@ -169,10 +169,8 @@ clean: ## Clean the current working directory
|
|||||||
|
|
||||||
.PHONY: clean-tables
|
.PHONY: clean-tables
|
||||||
clean-tables: ## Remove tables created during unit or integration tests
|
clean-tables: ## Remove tables created during unit or integration tests
|
||||||
for t in $$(./db -c '\dt' | awk '/\ywm_\w+\y/{print $$3}'); do \
|
./db -c '\dt' | awk '/\ywm_\w+\y/{print "drop table "$$3";"}' | ./db -f -
|
||||||
./db -c "drop table $$t"; \
|
-rm .faux_db
|
||||||
done
|
|
||||||
-rm .faux_test
|
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: ## Print this help message
|
help: ## Print this help message
|
||||||
|
Loading…
Reference in New Issue
Block a user