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

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /