drop table

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:48 +03:00 committed by Motiejus Jakštys
parent 58eb7bea87
commit 1bb83ec05d

View File

@ -169,7 +169,7 @@ 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
./db -c '\dt' | awk '/\ywm_\w+\y/{print "drop table "$$3";"}' | ./db -f - ./db -c '\dt wm_*' | awk '/_/{print "drop table "$$3";"}' | ./db -f -
-rm .faux_db -rm .faux_db
.PHONY: help .PHONY: help