Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Blueprint extends BaseBlueprint |
||
12 | { |
||
13 | /** |
||
14 | * Add a point column on the table |
||
15 | * |
||
16 | * @param string $column |
||
17 | * @param string $srid |
||
18 | * |
||
19 | * @return \Illuminate\Support\Fluent |
||
20 | */ |
||
21 | 16 | public function point($column, $srid = null) |
|
22 | { |
||
23 | 16 | return $this->addColumn('point', $column, ['srid' => $srid]); |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * Enable postgis on this database. |
||
28 | * Will create the extension in the database. |
||
29 | * |
||
30 | * @return \Illuminate\Support\Fluent |
||
31 | */ |
||
32 | 2 | public function enablePostgis() |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * Disable postgis on this database. |
||
39 | * WIll drop the extension in the database. |
||
40 | * |
||
41 | * @return \Illuminate\Support\Fluent |
||
42 | */ |
||
43 | 2 | public function disablePostgis() |
|
46 | } |
||
47 | } |
||
48 |