Skip to content

Commit 2bd0ef7

Browse files
Gerzhelinazhittaylorotwell
authored andcommitted
add multipolygonz type for postgreSQL (laravel#30173)
1 parent 7ae3aaa commit 2bd0ef7

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

src/Illuminate/Database/Schema/Blueprint.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,17 @@ public function multiPolygon($column)
11801180
return $this->addColumn('multipolygon', $column);
11811181
}
11821182

1183+
/**
1184+
* Create a new multipolygon column on the table.
1185+
*
1186+
* @param string $column
1187+
* @return \Illuminate\Database\Schema\ColumnDefinition
1188+
*/
1189+
public function multiPolygonZ($column)
1190+
{
1191+
return $this->addColumn('multipolygonz', $column);
1192+
}
1193+
11831194
/**
11841195
* Create a new generated, computed column on the table.
11851196
*

src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,17 @@ protected function typeMultiPolygon(Fluent $column)
868868
return $this->formatPostGisType('multipolygon');
869869
}
870870

871+
/**
872+
* Create the column definition for a spatial MultiPolygonZ type.
873+
*
874+
* @param \Illuminate\Support\Fluent $column
875+
* @return string
876+
*/
877+
protected function typeMultiPolygonZ(Fluent $column)
878+
{
879+
return $this->formatPostGisType('multipolygonz');
880+
}
881+
871882
/**
872883
* Format the column definition for a PostGIS spatial type.
873884
*

0 commit comments

Comments
 (0)