Skip to content

Commit 119f4fc

Browse files
committed
wip
1 parent c78934d commit 119f4fc

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.3",
18+
"php": "^8.0|^8.1",
1919
"ext-pdo": "*",
2020
"ext-json": "*",
21-
"illuminate/database": "^8.0",
21+
"illuminate/database": "^9.0",
2222
"geo-io/wkb-parser": "^1.0",
2323
"jmikola/geojson": "^1.0"
2424
},
2525
"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"
3131
},
3232
"autoload": {
3333
"psr-4": {
3434
"Grimzy\\LaravelMysqlSpatial\\": "src/"
3535
}
3636
},
37-
"autoload-dev" : {
38-
"classmap" : [
37+
"autoload-dev": {
38+
"classmap": [
3939
"tests/Unit",
4040
"tests/Integration"
4141
]

tests/Integration/Migrations/CreateTables.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class CreateLocationTable extends Migration
1313
*/
1414
public function up()
1515
{
16+
$this->down();
17+
1618
Schema::create('geometry', function (Blueprint $table) {
1719
$table->charset = 'utf8mb4';
1820
$table->collation = 'utf8mb4_unicode_ci';
@@ -55,8 +57,8 @@ public function up()
5557
*/
5658
public function down()
5759
{
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');
6163
}
6264
}

0 commit comments

Comments
 (0)