You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
346 B
Bash
13 lines
346 B
Bash
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
SCHEMA_CREATION_SCRIPT=./Create_DB.sql
|
||
|
TEST_DATA_SCRIPT=./Test_Data.sql
|
||
|
|
||
|
sudo psql -U postgres -c "DROP DATABASE test_artnet"
|
||
|
set -e
|
||
|
|
||
|
sudo psql -U postgres -c "CREATE DATABASE test_artnet WITH OWNER 'artnet_admin'"
|
||
|
sudo psql -U postgres test_artnet < $SCHEMA_CREATION_SCRIPT
|
||
|
|
||
|
sudo psql -U artnet_editor test_artnet < $TEST_DATA_SCRIPT
|