mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 14:06:11 +03:00
16 lines
243 B
Plaintext
16 lines
243 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
databases=$(psql --tuples-only --command "
|
||
|
SELECT
|
||
|
datname
|
||
|
FROM
|
||
|
pg_database
|
||
|
WHERE
|
||
|
datistemplate = false
|
||
|
AND datname like 'zed-test-%'
|
||
|
")
|
||
|
|
||
|
for database in $databases; do
|
||
|
echo $database
|
||
|
dropdb $database
|
||
|
done
|