Skip to content
Snippets Groups Projects
Commit a687ca63 authored by jdh8d's avatar jdh8d
Browse files

Former-commit-id: 14998440
parent 0d09aba0
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,23 @@
echo \$USER is $USER
reset_db()
{
dropdb $PGDATABASE || true
createdb -O ${USER} $PGDATABASE
$PEASOUP_HOME/tools/db/pdb_setup.sh
}
# reset default db
reset_db
#Create Database User and Table
source set_env_vars
for i in $(seq 0 4)
do
dropdb peasoup_${USER}_v$i
createdb -O ${USER} peasoup_${USER}_v$i
#Setup the Database to store PEASOUP info
PGDATABASE=peasoup_${USER}_v$i $PEASOUP_HOME/tools/db/pdb_setup.sh
PGDATABASE=peasoup_${USER}_v$i reset_db
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment