2015-07-31 14:11:13 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "Recreating database schema..."
|
2015-08-21 08:37:54 +02:00
|
|
|
psql -U concordia concordia_server -f concordia_server.sql
|
2015-07-31 14:11:13 +02:00
|
|
|
|
|
|
|
echo "Inserting initial data..."
|
|
|
|
for initFile in `ls init/*`
|
|
|
|
do
|
|
|
|
echo "Init file:" $initFile
|
2015-08-21 08:37:54 +02:00
|
|
|
psql -U concordia concordia_server -f $initFile
|
2015-07-31 14:11:13 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "Concordia server database recreation complete!"
|