Commit f171caf7 authored by Cornee Traas's avatar Cornee Traas
Browse files

Change setup_tables_unique and setup_and_load_tables.

setup_tables_unique is now create or empty instead of delete and recreate.
setup_and_load_tables has a number of arguments check.
It also has the database name as an argument now.
parent 0585e068
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <zip file containing load.sql> <database name>" >&2
exit 1
mkdir /tmp/loadtables
unzip $1 -d /tmp/loadtables
psql -1 -f setup_tables_unique.sql $2
cd /tmp/loadtables
psql -1 -f load.sql $2
rm *.csv *html *.pdf load.sql setup.sql
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment