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 b636f3c

Browse files
committed
Fixed MySqlGrammar::modifySrid()
1 parent 8fc0019 commit b636f3c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

‎src/Schema/Grammars/MySqlGrammar.php‎

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,9 @@
88

99
class MySqlGrammar extends IlluminateMySqlGrammar
1010
{
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-
2111
public function __construct()
2212
{
13+
// Enable SRID as a column modifier
2314
$this->modifiers[] = 'Srid';
2415
}
2516

@@ -135,12 +126,12 @@ public function compileSpatial(Blueprint $blueprint, Fluent $command)
135126
/**
136127
* Get the SQL for a SRID column modifier.
137128
*
138-
* @param Blueprint $blueprint
139-
* @param Fluent $column
129+
* @param \Illuminate\Database\Schema\Blueprint $blueprint
130+
* @param Fluent $column
140131
*
141132
* @return string|null
142133
*/
143-
protected function modifySrid(Blueprint $blueprint, Fluent $column)
134+
protected function modifySrid(\Illuminate\Database\Schema\Blueprint $blueprint, Fluent $column)
144135
{
145136
if (!is_null($column->srid) && is_int($column->srid) && $column->srid > 0) {
146137
return ' srid '.$column->srid;

0 commit comments

Comments
(0)

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