mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-10 00:16:09 +01:00
postgres init when scratch and timer in test-derive
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user