Skip to content

Commit

Permalink
refactor(graphql): WithTestObject database migration fix.
Browse files Browse the repository at this point in the history
LastDragon-ru committed Oct 17, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
LastDragon-ru Aleksei Lebedev
1 parent 3068f60 commit b5e9158
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

namespace LastDragon_ru\LaraASP\GraphQL\Testing\Package\Data\Models;

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\TestCase;
use Illuminate\Support\Facades\Schema;
@@ -26,8 +27,8 @@ public function initWithTestObject(): void {
return;
}

Schema::create($table, static function ($table): void {
$table->increments('id');
Schema::create($table, static function (Blueprint $table): void {
$table->string('id')->primary();
$table->string('value', 40)->nullable();
});
});

0 comments on commit b5e9158

Please sign in to comment.