tweak resetdb.sh
This commit is contained in:
parent
3bdf12c981
commit
3886c0a413
13
resetdb.sh
13
resetdb.sh
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh -x
|
||||
dropdb jam
|
||||
dropdb jam_db_build
|
||||
dropdb jam_ruby_test
|
||||
dropdb jam_web_test
|
||||
dropdb jam_websockets_test
|
||||
sudo su postgres -c "createdb jam"
|
||||
dropdb --if-exists jam
|
||||
dropdb --if-exists jam_db_build
|
||||
dropdb --if-exists jam_ruby_test
|
||||
dropdb --if-exists jam_web_test
|
||||
dropdb --if-exists jam_websockets_test
|
||||
createdb -Upostgres jam || sudo su postgres -c "createdb jam"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue