Browse Source

fix(dx): Throw error on failing to drop db in reset-db (#45288)

Evan Purkhiser 2 years ago
parent
commit
10e7ccd4ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/lib.sh

+ 1 - 1
scripts/lib.sh

@@ -220,7 +220,7 @@ clean() {
 
 drop-db() {
     echo "--> Dropping existing 'sentry' database"
-    docker exec sentry_postgres dropdb -h 127.0.0.1 -U postgres sentry || true
+    docker exec sentry_postgres dropdb --if-exists -h 127.0.0.1 -U postgres sentry
 }
 
 reset-db() {