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

Commit b309f08

Browse files
author
Roy van der Veen
committed
Add linestringz
1 parent a3c00e0 commit b309f08

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
@@ -68,6 +68,17 @@ public function linestring($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
6868
return $this->addColumn('linestring', $column, compact('geomtype', 'srid'));
6969
}
7070

71+
/**
72+
* Add a linestringz column on the table
73+
*
74+
* @param $column
75+
* @return \Illuminate\Support\Fluent
76+
*/
77+
public function linestringz($column, $geomtype = 'GEOGRAPHY', $srid = '4326')
78+
{
79+
return $this->addColumn('linestringz', $column, compact('geomtype', 'srid'));
80+
}
81+
7182
/**
7283
* Add a multilinestring column on the table
7384
*

src/Schema/Grammars/PostgisGrammar.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ public function typeLinestring(Fluent $column)
7676
return $this->createTypeDefinition($column, 'LINESTRING');
7777
}
7878

79+
/**
80+
* Adds a statement to add a linestringz geometry column
81+
*
82+
* @param \Illuminate\Support\Fluent $column
83+
* @return string
84+
*/
85+
public function typeLinestringZ(Fluent $column)
86+
{
87+
return $this->createTypeDefinition($column, 'LINESTRINGZ');
88+
}
89+
7990
/**
8091
* Adds a statement to add a multilinestring geometry column
8192
*

0 commit comments

Comments
 (0)