• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 14380251321

10 Apr 2025 12:19PM UTC coverage: 8.487% (+0.3%) from 8.187%
14380251321

Pull #7075

github

web-flow
Merge 802b308ba into dfca9bf60
Pull Request #7075: fix(laravel): eloquent BelongsTo linking

0 of 70 new or added lines in 7 files covered. (0.0%)

1 existing line in 1 file now uncovered.

13399 of 157884 relevant lines covered (8.49%)

22.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Laravel/workbench/database/migrations/2025_04_10_104829_create_grandson_table.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
use Illuminate\Database\Migrations\Migration;
15
use Illuminate\Database\Schema\Blueprint;
16
use Illuminate\Support\Facades\Schema;
17

NEW
18
return new class extends Migration {
×
19
    public function up(): void
20
    {
NEW
21
        Schema::create('grand_fathers', function (Blueprint $table): void {
×
NEW
22
            $table->increments('id_grand_father');
×
NEW
23
            $table->string('name');
×
NEW
24
            $table->timestamps();
×
NEW
25
        });
×
26

NEW
27
        Schema::create('grand_sons', function (Blueprint $table): void {
×
NEW
28
            $table->increments('id_grand_son');
×
NEW
29
            $table->string('name');
×
NEW
30
            $table->unsignedInteger('grand_father_id')->nullable();
×
NEW
31
            $table->timestamps();
×
NEW
32
            $table->foreign('grand_father_id')->references('id_grand_father')->on('grand_fathers');
×
NEW
33
        });
×
34
    }
35

36
    public function down(): void
37
    {
NEW
38
        Schema::dropIfExists('grand_fathers');
×
NEW
39
        Schema::dropIfExists('grand_sons');
×
40
    }
NEW
41
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc