Skip to content

Commit d6bdbc9

Browse files
committed
Move the inline statement to the constructors
1 parent 077a45e commit d6bdbc9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Schema/Grammar.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ class Grammar extends MySqlGrammar
1919
{
2020
use CompilesKeys, ModifiesColumns;
2121

22+
public function __construct()
23+
{
24+
// Before anything kicks off, we need to add the SingleStore modifiers
25+
// so that they'll get used while the columns are all compiling.
26+
$this->addSingleStoreModifiers();
27+
}
28+
2229
/**
2330
* Create the column definition for a spatial Geography type.
2431
*
@@ -54,10 +61,6 @@ public function typePoint(Fluent $column)
5461
*/
5562
protected function compileCreateTable($blueprint, $command, $connection)
5663
{
57-
// Before anything kicks off, we need to add the SingleStore modifiers
58-
// so that they'll get used while the columns are all compiling.
59-
$this->addSingleStoreModifiers();
60-
6164
// We want to do as little as possible ourselves, so we rely on the parent
6265
// to compile everything and then potentially sneak some modifiers in.
6366
return $this->insertCreateTableModifiers(

0 commit comments

Comments
 (0)