From bda994bc69aa053f07b5558594459383faf645e7 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 12 Mar 2024 17:43:43 -0300 Subject: [PATCH] foreign para abajo del todo --- database/migrations/2024_03_11_210402_create_barrios_table.php | 2 +- database/migrations/2024_03_11_221942_create_pedidos_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_03_11_210402_create_barrios_table.php b/database/migrations/2024_03_11_210402_create_barrios_table.php index 8d1352e..ea8018e 100644 --- a/database/migrations/2024_03_11_210402_create_barrios_table.php +++ b/database/migrations/2024_03_11_210402_create_barrios_table.php @@ -15,8 +15,8 @@ public function up(): void $table->id(); $table->string('name', 100); $table->unsignedBigInteger('region_id'); - $table->foreign('region_id')->references('id')->on('regiones'); $table->timestamps(); + $table->foreign('region_id')->references('id')->on('regiones'); }); } diff --git a/database/migrations/2024_03_11_221942_create_pedidos_table.php b/database/migrations/2024_03_11_221942_create_pedidos_table.php index 2848a1b..791a1a8 100644 --- a/database/migrations/2024_03_11_221942_create_pedidos_table.php +++ b/database/migrations/2024_03_11_221942_create_pedidos_table.php @@ -15,8 +15,8 @@ public function up(): void $table->id(); $table->string('name', 100); $table->unsignedBigInteger('barrio_id'); - $table->foreign('barrio_id')->references('id')->on('barrios'); $table->timestamps(); + $table->foreign('barrio_id')->references('id')->on('barrios'); }); }