Fixed migration issue
This commit is contained in:
parent
a6a0a0a506
commit
9c954b4572
|
|
@ -14,7 +14,7 @@ return new class extends Migration
|
||||||
Schema::create('stores', function (Blueprint $table) {
|
Schema::create('stores', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->foreignId('post_id')
|
$table->foreignId('post_id')
|
||||||
->constrained()
|
->constrained('posts', 'id')
|
||||||
->cascadeOnDelete()
|
->cascadeOnDelete()
|
||||||
->cascadeOnUpdate();
|
->cascadeOnUpdate();
|
||||||
$table->string('key');
|
$table->string('key');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user