I've cloned this Github repository PostgreSQL VM via Vagrant. Been trying to create a new schema test
but it always ends up under postgres
database. Considering the create database is named myapp
, how can I create the test
schema under myapp
database?
I've been trying to add this script under the Vagrant-setup/bootstrap.sh
.
cat << EOF | su - postgres -c psql myapp
create schema test;
EOF