1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 23:54:03 +00:00

Create default postgres db

This commit is contained in:
Samuel Štancl 2019-06-29 14:03:55 +02:00
parent 6ecf3777fa
commit fb57845dd2
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@ before_script:
- mysql -e 'CREATE DATABASE travis_tenancy;'
- export DB_USERNAME=root DB_PASSWORD="" DB_DATABASE=travis_tenancy CODECOV_TOKEN="24382d15-84e7-4a55-bea4-c4df96a24a9b"
- cat vendor/laravel/framework/src/Illuminate/Foundation/Application.php| grep 'const VERSION'
- psql -c 'create database default;' -U postgres
script: vendor/bin/phpunit -v --coverage-clover=coverage.xml

View file

@ -67,7 +67,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
'suffix' => '.sqlite',
],
'database.connections.sqlite.database' => ':memory:',
'database.connections.pgsql.database' => null,
'database.connections.pgsql.database' => 'default',
'database.connections.pgsql.username' => 'postgres',
'tenancy.filesystem.disks' => [
'local',