diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-12-10 01:29:49 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2018-01-28 22:56:21 +0100 |
commit | fb111e6d958fdf56352db66e144134241abbacf8 (patch) | |
tree | f7331a829ef12589f135af1d69f80be05d64099e /tests/travis/prepare_pgsql.sh | |
parent | e177462c901cd29c3e423640a6f538a930c29536 (diff) | |
download | volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.tar.gz volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.tar.bz2 volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.zip |
:white_check_mark: Unit Test for dba_pdo driver class.
Diffstat (limited to 'tests/travis/prepare_pgsql.sh')
-rwxr-xr-x | tests/travis/prepare_pgsql.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/travis/prepare_pgsql.sh b/tests/travis/prepare_pgsql.sh index 63c7388cb..3c38ef60c 100755 --- a/tests/travis/prepare_pgsql.sh +++ b/tests/travis/prepare_pgsql.sh @@ -34,10 +34,15 @@ psql -U postgres -c "SELECT VERSION();" # Create Hubzilla database psql -U postgres -c "DROP DATABASE IF EXISTS hubzilla;" -psql -U postgres -c "CREATE DATABASE hubzilla;" +psql -U postgres -v ON_ERROR_STOP=1 <<-EOSQL + CREATE USER hubzilla WITH PASSWORD 'hubzilla'; + CREATE DATABASE hubzilla; + ALTER DATABASE hubzilla OWNER TO hubzilla; + GRANT ALL PRIVILEGES ON DATABASE hubzilla TO hubzilla; +EOSQL # Import table structure -psql -U postgres -v ON_ERROR_STOP=1 hubzilla < ./install/schema_postgres.sql +psql -U hubzilla -v ON_ERROR_STOP=1 hubzilla < ./install/schema_postgres.sql # Show databases and tables psql -U postgres -l |