Skip to content
Snippets Groups Projects
create-mock-abase-db.sh 264 B
Newer Older
  • Learn to ignore specific revisions
  • kaloyane's avatar
    kaloyane committed
    #!/bin/bash
    USER=`whoami`
    ABASE_DB="abase_mock_db"
    
    
    tpylak's avatar
    tpylak committed
    psql -U postgres -c "drop database if exists $ABASE_DB;"
    
    tpylak's avatar
    tpylak committed
    psql -U postgres -c "create database $ABASE_DB with owner $USER template = template0 encoding = 'UNICODE'"
    
    tpylak's avatar
    tpylak committed
    psql -U $USER -d $ABASE_DB -f mock-abase-db.sql