Skip to content

Commit bd2406b

Browse files
croakyiampogo
authored andcommitted
bin/createdb-if-not-exists: use instead of dropdb
Developing locally against Dashboard uses the `ledger` database. Running `$CHAIN/sdk/{java,node,ruby}/bin/tests` drops that database. Instead of dropping the database and then creating it, check to see if it doesn't exist, and then create it. Extract to a script for clarity. Closes #3559 Author: Dan Croak <dan@statusok.com> Date: Wed May 2 12:08:22 2018 -0700 upstream:a1cfec659f968c7984f7b546f37a590731bae64c
1 parent e6b556c commit bd2406b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -xeo pipefail
3-
dropdb --if-exists ledger; createdb ledger
3+
createdb-if-not-exists ledger
44
cd $CHAIN/sdk/node
55
npm install --scripts-prepend-node-path
66
with-ledgerd npm test --scripts-prepend-node-path

0 commit comments

Comments
 (0)