Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84def94

Browse filesBrowse files
committed
Fixing issue when running in Parallel test mode
1 parent ab8550b commit 84def94
Copy full SHA for 84def94

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/MysqlConnection.php

Copy file name to clipboardExpand all lines: src/MysqlConnection.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
use Grimzy\LaravelMysqlSpatial\Schema\Builder;
77
use Grimzy\LaravelMysqlSpatial\Schema\Grammars\MySqlGrammar;
88
use Illuminate\Database\MySqlConnection as IlluminateMySqlConnection;
9+
use Illuminate\Support\Facades\ParallelTesting;
910

1011
class MysqlConnection extends IlluminateMySqlConnection
1112
{
1213
public function __construct($pdo, $database = '', $tablePrefix = '', array $config = [])
1314
{
1415
parent::__construct($pdo, $database, $tablePrefix, $config);
1516

16-
if (class_exists(DoctrineType::class)) {
17+
if (class_exists(DoctrineType::class) && !ParallelTesting::token()) {
1718
// Prevent geometry type fields from throwing a 'type not found' error when changing them
1819
$geometries = [
1920
'geometry',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.