Skip to content

Commit db42f20

Browse files
committed
Fixed MySqlGrammar::__construct()
1 parent b636f3c commit db42f20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Schema/Grammars/MySqlGrammar.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88

99
class MySqlGrammar extends IlluminateMySqlGrammar
1010
{
11+
const COLUMN_MODIFIER_SRID = 'Srid';
12+
1113
public function __construct()
1214
{
1315
// Enable SRID as a column modifier
14-
$this->modifiers[] = 'Srid';
16+
if (!in_array(self::COLUMN_MODIFIER_SRID, $this->modifiers)) {
17+
$this->modifiers[] = self::COLUMN_MODIFIER_SRID;
18+
}
1519
}
1620

1721
/**

0 commit comments

Comments
 (0)