Skip to content

Commit 91b3f5b

Browse files
debug: stop foreign keys temporarily
1 parent 3704da3 commit 91b3f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2024_07_13_100247_create_sons_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public function up(): void
1010
{
1111
Schema::create('sons', function (Blueprint $table) {
1212
$table->bigIncrements('id'); // primary key => ignored
13-
$table->unsignedBigInteger('father_id');
14-
$table->foreign('father_id')->references('id')->on('fathers'); // required
13+
//$table->unsignedBigInteger('father_id');
14+
$table->foreignId('father_id'); // todo stop foreign keys temp
1515
});
1616
}
1717

0 commit comments

Comments
 (0)