aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yml
diff options
context:
space:
mode:
Diffstat (limited to 'Taskfile.yml')
-rw-r--r--Taskfile.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/Taskfile.yml b/Taskfile.yml
index 6607b8a6..872bf990 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -90,3 +90,12 @@ tasks:
desc: Identify legacy and deprecated lines
cmds:
- grep -rnw "\(LEGACY\|Deprecated\)" internal
+
+ drop-test-db:
+ desc: Drop the test database
+ cmds:
+ - |
+ for dbname in $(psql -Xc "copy (select datname from pg_database where datname like 'gogs-%') to stdout"); do
+ dropdb "$dbname"
+ echo "dropped $dbname"
+ done