Travis: Add table prefix to build matrix (#1568)

Fixes #1564.
This commit is contained in:
Franz Liedke 2018-09-16 20:59:40 +02:00 committed by GitHub
parent 386663ef53
commit aae8aa4a51
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,9 @@ jobs:
- php: 7.2
env: DB=mysql
- php: 7.2
env: DB=mysql PREFIX=forum_
- php: 7.1
addons:
mariadb: '10.2'

View File

@ -89,6 +89,7 @@ trait CreatesForum
$database['database'] = env('DB_DATABASE', $database['database']);
$database['username'] = env('DB_USERNAME', $database['username']);
$database['password'] = env('DB_PASSWORD', $database['password']);
$database['prefix'] = env('DB_PREFIX', $database['prefix']);
$this->configuration->setDatabaseConfiguration($database);
}