eliminada columna para total

This commit is contained in:
Alejandro Tasistro 2024-03-19 15:40:53 -03:00
parent a569a2a497
commit 76199273c9
1 changed files with 2 additions and 3 deletions

View File

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