From 94c82f8b1d1ac0f7efa6c0be25f2f061efb860cb Mon Sep 17 00:00:00 2001 From: Romain Date: Thu, 12 Sep 2024 11:53:34 +0200 Subject: [PATCH] migration users 2 --- database/migrations/2014_10_12_000000_create_users_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 094c026b..e2e3c824 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -34,7 +34,7 @@ public function up(): void $table->string('contact_name')->nullable(); $table->string('contact_phone')->nullable(); $table->integer('nb_children')->nullable(); - $table->foreignId('parent_id')->nullable(); + $table->foreignId('parent_id')->nullable()->constrained(); $table->timestamps(); }); }