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'); }); }