From 2bd0ef74d6962daea31045cb6f15aecb1fe2d19e Mon Sep 17 00:00:00 2001 From: Oleg Zayats <30827553+Gerzhelinazhit@users.noreply.github.com> Date: Thu, 3 Oct 2019 19:22:57 +0300 Subject: [PATCH] add multipolygonz type for postgreSQL (#30173) --- src/Illuminate/Database/Schema/Blueprint.php | 11 +++++++++++ .../Database/Schema/Grammars/PostgresGrammar.php | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/Illuminate/Database/Schema/Blueprint.php b/src/Illuminate/Database/Schema/Blueprint.php index a08f5be49ad4..f555c44b77e7 100755 --- a/src/Illuminate/Database/Schema/Blueprint.php +++ b/src/Illuminate/Database/Schema/Blueprint.php @@ -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. * diff --git a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php index 6edf18eb5fe2..0f85bc96b304 100755 --- a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php @@ -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. *