mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-28 16:06:07 +01:00
Another try to fix travis
This commit is contained in:
parent
5503a3b827
commit
420fa7dd88
@ -21,6 +21,7 @@ before_script:
|
||||
|
||||
script:
|
||||
- DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
||||
- php artisan config:clear
|
||||
- DATABASE=sqlite vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml
|
||||
|
||||
after_success:
|
||||
|
@ -33,7 +33,8 @@ public function down()
|
||||
{
|
||||
Schema::table('twofaccounts', function (Blueprint $table) {
|
||||
// cannot drop foreign keys in SQLite:
|
||||
if ('sqlite' !== config('database.default')) {
|
||||
$driver = Schema::connection($this->getConnection())->getConnection()->getDriverName();
|
||||
if ('sqlite' !== $driver) {
|
||||
$table->dropForeign(['group_id']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user