Skip to content

Commit

Permalink
Return to Laravel latest (11.35) in CI. Fixed Laravel 11.15+ migratio…
Browse files Browse the repository at this point in the history
…n error in the Links module
  • Loading branch information
fulopattila122 committed Dec 14, 2024
1 parent 7ad7af6 commit 8364eb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
php: ['8.2', '8.3']
laravel: ['10.43', '10.48', '11.0', '11.14']
laravel: ['10.43', '10.48', '11.0', '11.35']
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
steps:
- name: Checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public function up(): void
Schema::table('link_groups', function (Blueprint $table) {
$table->unsignedBigInteger('root_item_id')->nullable();

$table->foreign('root_item_id')->references('id')->on('link_group_items');
if ('sqlite' !== DB::connection()->getDriverName()) {
$table->foreign('root_item_id')->references('id')->on('link_group_items');
}
});
}

Expand Down

0 comments on commit 8364eb3

Please sign in to comment.