File tree 2 files changed +14
-12
lines changed
tests/Integration/Migrations
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 15
15
}
16
16
],
17
17
"require" : {
18
- "php" : " >=7.3 " ,
18
+ "php" : " ^8.0|^8.1 " ,
19
19
"ext-pdo" : " *" ,
20
20
"ext-json" : " *" ,
21
- "illuminate/database" : " ^8 .0" ,
21
+ "illuminate/database" : " ^9 .0" ,
22
22
"geo-io/wkb-parser" : " ^1.0" ,
23
23
"jmikola/geojson" : " ^1.0"
24
24
},
25
25
"require-dev" : {
26
- "phpunit/phpunit" : " ~6.5 " ,
27
- "laravel/laravel" : " ^8 .0" ,
28
- "doctrine/dbal" : " ^2.5 " ,
29
- "laravel/browser-kit-testing" : " ^2.0 " ,
30
- "mockery/mockery" : " ^1.3 "
26
+ "phpunit/phpunit" : " ^9.5.10 " ,
27
+ "laravel/laravel" : " ^9 .0" ,
28
+ "doctrine/dbal" : " ^3.3 " ,
29
+ "laravel/browser-kit-testing" : " ^6.3 " ,
30
+ "mockery/mockery" : " ^1.4.4 "
31
31
},
32
32
"autoload" : {
33
33
"psr-4" : {
34
34
"Grimzy\\ LaravelMysqlSpatial\\ " : " src/"
35
35
}
36
36
},
37
- "autoload-dev" : {
38
- "classmap" : [
37
+ "autoload-dev" : {
38
+ "classmap" : [
39
39
" tests/Unit" ,
40
40
" tests/Integration"
41
41
]
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class CreateLocationTable extends Migration
13
13
*/
14
14
public function up ()
15
15
{
16
+ $ this ->down ();
17
+
16
18
Schema::create ('geometry ' , function (Blueprint $ table ) {
17
19
$ table ->charset = 'utf8mb4 ' ;
18
20
$ table ->collation = 'utf8mb4_unicode_ci ' ;
@@ -55,8 +57,8 @@ public function up()
55
57
*/
56
58
public function down ()
57
59
{
58
- Schema::drop ('geometry ' );
59
- Schema::drop ('no_spatial_fields ' );
60
- Schema::drop ('with_srid ' );
60
+ Schema::dropIfExists ('geometry ' );
61
+ Schema::dropIfExists ('no_spatial_fields ' );
62
+ Schema::dropIfExists ('with_srid ' );
61
63
}
62
64
}
You can’t perform that action at this time.
0 commit comments