Skip to content

Commit

Permalink
add multipolygonz type for postgreSQL (#30173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerzhelinazhit authored and taylorotwell committed Oct 3, 2019
1 parent 7ae3aaa commit 2bd0ef7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,17 @@ public function multiPolygon($column)
return $this->addColumn('multipolygon', $column);
}

/**
* Create a new multipolygon column on the table.
*
* @param string $column
* @return \Illuminate\Database\Schema\ColumnDefinition
*/
public function multiPolygonZ($column)
{
return $this->addColumn('multipolygonz', $column);
}

/**
* Create a new generated, computed column on the table.
*
Expand Down
11 changes: 11 additions & 0 deletions src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,17 @@ protected function typeMultiPolygon(Fluent $column)
return $this->formatPostGisType('multipolygon');
}

/**
* Create the column definition for a spatial MultiPolygonZ type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeMultiPolygonZ(Fluent $column)
{
return $this->formatPostGisType('multipolygonz');
}

/**
* Format the column definition for a PostGIS spatial type.
*
Expand Down

0 comments on commit 2bd0ef7

Please sign in to comment.