From 76199273c9676872fc604311a96718afb92a165b Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 19 Mar 2024 15:40:53 -0300 Subject: [PATCH] eliminada columna para total --- .../migrations/2024_03_11_224041_create_productos_table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/database/migrations/2024_03_11_224041_create_productos_table.php b/database/migrations/2024_03_11_224041_create_productos_table.php index 9fe931d..71b1ea6 100644 --- a/database/migrations/2024_03_11_224041_create_productos_table.php +++ b/database/migrations/2024_03_11_224041_create_productos_table.php @@ -24,11 +24,10 @@ public function up(): void $table->foreign('barrio_id')->references('id')->on('barrios'); }); - Schema::create('producto_pedido', function (Blueprint $table) { + Schema::create('pedido_producto', function (Blueprint $table) { $table->unsignedBigInteger('pedido_id'); $table->unsignedBigInteger('producto_id'); $table->unsignedInteger('cantidad'); - $table->unsignedDecimal('total', 15, 8); $table->timestamps(); $table->primary(['pedido_id','producto_id']); $table->foreign('pedido_id')->references('id')->on('pedidos'); @@ -41,7 +40,7 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('producto_pedido'); + Schema::dropIfExists('pedido_producto'); Schema::dropIfExists('productos'); } };