| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('test_geometries', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->geometry('geo')->default(null)->nullable(); |
||
| 19 | $table->point('location'); // required to be not null in order to add an index |
||
| 20 | $table->lineString('line')->default(null)->nullable(); |
||
| 21 | $table->polygon('shape')->default(null)->nullable(); |
||
| 22 | $table->multiPoint('multi_locations')->default(null)->nullable(); |
||
| 23 | $table->multiLineString('multi_lines')->default(null)->nullable(); |
||
| 24 | $table->multiPolygon('multi_shapes')->default(null)->nullable(); |
||
| 25 | $table->geometryCollection('multi_geometries')->default(null)->nullable(); |
||
| 26 | $table->timestamps(); |
||
| 27 | }); |
||
| 28 | |||
| 29 | Schema::create('no_spatial_fields', function (Blueprint $table) { |
||
| 30 | $table->increments('id'); |
||
| 31 | $table->geometry('geometry')->default(null)->nullable(); |
||
| 32 | }); |
||
| 46 |