mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
parent
25fdeaac49
commit
41d473e999
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user