Skip to content

Commit e5218c4

Browse files
authored
Added support for Laravel 10 (#10)
1 parent f362c8d commit e5218c4

12 files changed

+32
-48
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ jobs:
112112
laravel: '^9.0'
113113
experimental: false
114114
coverage: false
115+
- operating_system: ubuntu-latest
116+
postgres: '14'
117+
php_versions: '8.1'
118+
laravel: '^10.0'
119+
experimental: false
120+
coverage: false
115121
runs-on: '${{ matrix.operating_system }}'
116122
services:
117123
postgres:
@@ -187,9 +193,9 @@ jobs:
187193
-e "s/\${HOST}/${{ env.DB_HOST }}/" \
188194
phpunit.xml.dist > phpunit.xml
189195
if [[ ${{ matrix.coverage }} == true ]]; then
190-
./vendor/bin/phpunit --verbose --stderr --coverage-clover build/logs/clover.xml --coverage-text
196+
./vendor/bin/phpunit --stderr --coverage-clover build/logs/clover.xml --coverage-text
191197
else
192-
./vendor/bin/phpunit --verbose --stderr
198+
./vendor/bin/phpunit --stderr
193199
fi
194200
working-directory: './'
195201
- name: 'Upload coverage results to Coveralls'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ composer.lock
99
app/release
1010
app/.env
1111
app/composer.json
12+
/.phpunit.cache

app/database/fail_migrations/0000_00_00_000004_add_columns_to_feature_table1.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ public function down(): void
2323
{
2424
DB::transaction(function () {
2525
Schema::table('feature_table1', function (Blueprint $table) {
26-
$table->dropColumn([
27-
'name',
28-
'code',
29-
'some_field',
30-
]);
26+
$table->dropColumn(['name', 'code', 'some_field']);
3127
});
3228
});
3329
}

app/database/fail_migrations/0000_00_00_000006_add_columns_to_feature_table3.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ public function down(): void
2323
{
2424
DB::transaction(function () {
2525
Schema::table('feature_table3', function (Blueprint $table) {
26-
$table->dropColumn([
27-
'name',
28-
'code',
29-
]);
26+
$table->dropColumn(['name', 'code']);
3027
});
3128
});
3229
}

app/database/new_migrations/0000_00_00_000005_add_columns_to_feature_table2.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ public function down(): void
2323
{
2424
DB::transaction(function () {
2525
Schema::table('feature_table2', function (Blueprint $table) {
26-
$table->dropColumn([
27-
'name',
28-
'code',
29-
]);
26+
$table->dropColumn(['name', 'code']);
3027
});
3128
});
3229
}

app/database/new_migrations/0000_00_00_000007_add_relations_for_feature_table1.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ public function down(): void
2828
{
2929
DB::transaction(function () {
3030
Schema::table('feature_table1', function (Blueprint $table) {
31-
$table->dropColumn([
32-
'feature_table2_id',
33-
]);
31+
$table->dropColumn(['feature_table2_id']);
3432
});
3533
});
3634
}

app/database/new_migrations/0000_00_00_000008_add_relations_for_feature_table2.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ public function down(): void
2828
{
2929
DB::transaction(function () {
3030
Schema::table('feature_table2', function (Blueprint $table) {
31-
$table->dropColumn([
32-
'feature_table3_id',
33-
]);
31+
$table->dropColumn(['feature_table3_id']);
3432
});
3533
});
3634
}

app/database/old_migrations/0000_00_00_000004_add_columns_to_feature_table1.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ public function down(): void
2323
{
2424
DB::transaction(function () {
2525
Schema::table('feature_table1', function (Blueprint $table) {
26-
$table->dropColumn([
27-
'name',
28-
'code',
29-
]);
26+
$table->dropColumn(['name', 'code']);
3027
});
3128
});
3229
}

app/database/old_migrations/0000_00_00_000006_add_columns_to_feature_table3.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ public function down(): void
2323
{
2424
DB::transaction(function () {
2525
Schema::table('feature_table3', function (Blueprint $table) {
26-
$table->dropColumn([
27-
'name',
28-
'code',
29-
]);
26+
$table->dropColumn(['name', 'code']);
3027
});
3128
});
3229
}

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
},
3737
"require": {
3838
"php": "^7.3|^7.4|^8.0",
39-
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0",
40-
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0",
41-
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0"
39+
"illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
40+
"illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0",
41+
"illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0"
4242
},
4343
"require-dev": {
44-
"phpunit/phpunit": "^7.3|^8.5|^9.4",
44+
"phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0",
4545
"php-mock/php-mock": "^2.0",
46-
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0",
46+
"orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0",
4747
"umbrellio/code-style-php": "^1.0",
4848
"laravel/legacy-factories": "^1.0",
4949
"php-coveralls/php-coveralls": "^2.1",

0 commit comments

Comments
 (0)