You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note that behavior and availability of MySQL spatial analysis functions differs in each MySQL version (cf. [documentation](https://dev.mysql.com/doc/refman/5.7/en/spatial-function-reference.html)).*
332
+
*Note that behavior and availability of MySQL spatial analysis functions differs in each MySQL version (cf. [documentation](https://dev.mysql.com/doc/refman/8.0/en/spatial-function-reference.html)).*
333
333
334
334
## Migrations
335
335
@@ -346,7 +346,7 @@ class CreatePlacesTable extends Migration {
346
346
347
347
### Columns
348
348
349
-
Available [MySQL Spatial Types](https://dev.mysql.com/doc/refman/5.7/en/spatial-datatypes.html) migration blueprints:
349
+
Available [MySQL Spatial Types](https://dev.mysql.com/doc/refman/8.0/en/spatial-type-overview.html) migration blueprints:
350
350
351
351
-`$table->geometry(string $column_name, int $srid = 0)`
352
352
-`$table->point(string $column_name, int $srid = 0)`
@@ -364,9 +364,9 @@ You can add or drop spatial indexes in your migrations with the `spatialIndex` a
364
364
-`$table->spatialIndex('column_name')`
365
365
-`$table->dropSpatialIndex(['column_name'])` or `$table->dropSpatialIndex('index_name')`
366
366
367
-
Note about spatial indexes from the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/creating-spatial-indexes.html):
367
+
Note about spatial indexes from the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/creating-spatial-indexes.html):
368
368
369
-
> For [`MyISAM`](https://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html) and (as of MySQL 5.7.5) `InnoDB` tables, MySQL can create spatial indexes using syntax similar to that for creating regular indexes, but using the `SPATIAL` keyword. Columns in spatial indexes must be declared `NOT NULL`.
369
+
> For [`MyISAM`](https://dev.mysql.com/doc/refman/8.0/en/myisam-storage-engine.html) and (as of MySQL 5.7.5) `InnoDB` tables, MySQL can create spatial indexes using syntax similar to that for creating regular indexes, but using the `SPATIAL` keyword. Columns in spatial indexes must be declared `NOT NULL`.
370
370
371
371
Also please read this [**important note**](https://laravel.com/docs/5.5/migrations#indexes) regarding Index Lengths in the Laravel 5.6 documentation.
372
372
@@ -436,7 +436,7 @@ $ composer test:integration
436
436
Integration tests require a running MySQL database. If you have Docker installed, you can start easily start one:
0 commit comments