Skip to content

Commit 1039d8b

Browse files
authored
Use anonymous migrations (#1531)
1 parent de6e1fd commit 1039d8b

6 files changed

+19
-19
lines changed

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"php": "^7.3|^8.0",
1818
"ext-json": "*",
1919
"firebase/php-jwt": "^5.0",
20-
"illuminate/auth": "^8.2|^9.0",
21-
"illuminate/console": "^8.2|^9.0",
22-
"illuminate/container": "^8.2|^9.0",
23-
"illuminate/contracts": "^8.2|^9.0",
24-
"illuminate/cookie": "^8.2|^9.0",
25-
"illuminate/database": "^8.2|^9.0",
26-
"illuminate/encryption": "^8.2|^9.0",
27-
"illuminate/http": "^8.2|^9.0",
28-
"illuminate/support": "^8.2|^9.0",
20+
"illuminate/auth": "^8.37|^9.0",
21+
"illuminate/console": "^8.37|^9.0",
22+
"illuminate/container": "^8.37|^9.0",
23+
"illuminate/contracts": "^8.37|^9.0",
24+
"illuminate/cookie": "^8.37|^9.0",
25+
"illuminate/database": "^8.37|^9.0",
26+
"illuminate/encryption": "^8.37|^9.0",
27+
"illuminate/http": "^8.37|^9.0",
28+
"illuminate/support": "^8.37|^9.0",
2929
"lcobucci/jwt": "^3.4|^4.0",
3030
"league/oauth2-server": "^8.2",
3131
"nyholm/psr7": "^1.3",

database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateOauthAuthCodesTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* The database schema.
@@ -59,4 +59,4 @@ public function getConnection()
5959
{
6060
return config('passport.storage.database.connection');
6161
}
62-
}
62+
};

database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateOauthAccessTokensTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* The database schema.
@@ -61,4 +61,4 @@ public function getConnection()
6161
{
6262
return config('passport.storage.database.connection');
6363
}
64-
}
64+
};

database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateOauthRefreshTokensTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* The database schema.
@@ -57,4 +57,4 @@ public function getConnection()
5757
{
5858
return config('passport.storage.database.connection');
5959
}
60-
}
60+
};

database/migrations/2016_06_01_000004_create_oauth_clients_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateOauthClientsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* The database schema.
@@ -63,4 +63,4 @@ public function down()
6363
{
6464
$this->schema->dropIfExists('oauth_clients');
6565
}
66-
}
66+
};

database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateOauthPersonalAccessClientsTable extends Migration
7+
return new class extends Migration
88
{
99
/**
1010
* The database schema.
@@ -56,4 +56,4 @@ public function getConnection()
5656
{
5757
return config('passport.storage.database.connection');
5858
}
59-
}
59+
};

0 commit comments

Comments
 (0)