|
8 | 8 |
|
9 | 9 | class MySqlGrammar extends IlluminateMySqlGrammar
|
10 | 10 | {
|
11 | | - /** |
12 | | - * The possible column modifiers. |
13 | | - * |
14 | | - * @var array |
15 | | - */ |
16 | | -// protected $modifiers = [ |
17 | | -// 'Unsigned', 'Charset', 'Collate', 'VirtualAs', 'StoredAs', 'Nullable', |
18 | | -// 'Default', 'Increment', 'Comment', 'After', 'First', 'Srid', |
19 | | -// ]; |
20 | | - |
21 | 11 | public function __construct()
|
22 | 12 | {
|
| 13 | + // Enable SRID as a column modifier |
23 | 14 | $this->modifiers[] = 'Srid';
|
24 | 15 | }
|
25 | 16 |
|
@@ -135,12 +126,12 @@ public function compileSpatial(Blueprint $blueprint, Fluent $command)
|
135 | 126 | /**
|
136 | 127 | * Get the SQL for a SRID column modifier.
|
137 | 128 | *
|
138 | | - * @param Blueprint $blueprint |
139 | | - * @param Fluent $column |
| 129 | + * @param \Illuminate\Database\Schema\Blueprint $blueprint |
| 130 | + * @param Fluent $column |
140 | 131 | *
|
141 | 132 | * @return string|null
|
142 | 133 | */
|
143 | | - protected function modifySrid(Blueprint $blueprint, Fluent $column) |
| 134 | + protected function modifySrid(\Illuminate\Database\Schema\Blueprint $blueprint, Fluent $column) |
144 | 135 | {
|
145 | 136 | if (!is_null($column->srid) && is_int($column->srid) && $column->srid > 0) {
|
146 | 137 | return ' srid '.$column->srid;
|
|
0 commit comments