Skip to content

Commit

Permalink
Merge 0f67c1c into 59edd60
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerzhelinazhit committed Oct 3, 2019
2 parents 59edd60 + 0f67c1c commit 60dbf53
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ public function multipolygon($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
return $this->addColumn('multipolygon', $column, compact('geomtype', 'srid'));
}

/**
* Add a multipolygonz column on the table
*
* @param $column
* @return \Illuminate\Support\Fluent
*/
public function multipolygonz($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
{
return $this->addColumn('multipolygonz', $column, compact('geomtype', 'srid'));
}

/**
* Add a linestring column on the table
*
Expand Down
11 changes: 11 additions & 0 deletions src/Schema/Grammars/PostgisGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ public function typeMultipolygon(Fluent $column)
return $this->createTypeDefinition($column, 'MULTIPOLYGON');
}

/**
* Adds a statement to add a multipolygonz geometry column
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
public function typeMultiPolygonZ(Fluent $column)
{
return $this->createTypeDefinition($column, 'MULTIPOLYGONZ');
}

/**
* Adds a statement to add a linestring geometry column
*
Expand Down

0 comments on commit 60dbf53

Please sign in to comment.