Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 7f6f375

Browse files
authored
Merge pull request #120 from Gerzhelinazhit/add-MultiPolygonZ-type
add multipolygonz type
2 parents a275381 + a590997 commit 7f6f375

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/Schema/Blueprint.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ public function multipolygon($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
4646
return $this->addColumn('multipolygon', $column, compact('geomtype', 'srid'));
4747
}
4848

49+
/**
50+
* Add a multipolygonz column on the table
51+
*
52+
* @param $column
53+
* @return \Illuminate\Support\Fluent
54+
*/
55+
public function multipolygonz($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
56+
{
57+
return $this->addColumn('multipolygonz', $column, compact('geomtype', 'srid'));
58+
}
59+
4960
/**
5061
* Add a linestring column on the table
5162
*

src/Schema/Grammars/PostgisGrammar.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ public function typeMultipolygon(Fluent $column)
5454
return $this->createTypeDefinition($column, 'MULTIPOLYGON');
5555
}
5656

57+
/**
58+
* Adds a statement to add a multipolygonz geometry column
59+
*
60+
* @param \Illuminate\Support\Fluent $column
61+
* @return string
62+
*/
63+
public function typeMultiPolygonZ(Fluent $column)
64+
{
65+
return $this->createTypeDefinition($column, 'MULTIPOLYGONZ');
66+
}
67+
5768
/**
5869
* Adds a statement to add a linestring geometry column
5970
*

0 commit comments

Comments
 (0)