fuel-ostf/fuel_plugin/testing/test_utils/db_manage.sh

5 lines
322 B
Bash

export PGPASSWORD='ostf'
psql -U postgres -h localhost -c "drop user adapter"
psql -U postgres -h localhost -c "create role adapter with nosuperuser createdb password 'demo' login"
psql -U postgres -h localhost -c "drop database if exists testing_adapter"
psql -U postgres -h localhost -c "create database testing_adapter"