postgres init when scratch and timer in test-derive

This commit is contained in:
kexkey
2021-11-14 22:23:50 -05:00
parent 0f961f812b
commit 3b854691b2
2 changed files with 15 additions and 11 deletions

View File

@@ -33,6 +33,7 @@ createCurlConfig() {
if [ ! -e ${DB_FILE} ]; then
echo "DB not found, creating..."
cat cyphernode.sql | sqlite3 $DB_FILE
psql -h postgres -f cyphernode.postgresql -U cyphernode
else
echo "DB found, migrating..."
for script in sqlmigrate*.sh; do