From f872b1e9fd85419fe708639e4d534045ccfc871a Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 19 Mar 2024 22:13:18 -0300 Subject: [PATCH] agregadas columnas --- database/migrations/2024_03_11_221942_create_pedidos_table.php | 1 + database/migrations/2024_03_11_224041_create_productos_table.php | 1 + 2 files changed, 2 insertions(+) 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 791a1a8..82de4d1 100644 --- a/database/migrations/2024_03_11_221942_create_pedidos_table.php +++ b/database/migrations/2024_03_11_221942_create_pedidos_table.php @@ -14,6 +14,7 @@ public function up(): void Schema::create('pedidos', function (Blueprint $table) { $table->id(); $table->string('name', 100); + $table->boolean('confirmed')->default(false); $table->unsignedBigInteger('barrio_id'); $table->timestamps(); $table->foreign('barrio_id')->references('id')->on('barrios'); 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 71b1ea6..4557bce 100644 --- a/database/migrations/2024_03_11_224041_create_productos_table.php +++ b/database/migrations/2024_03_11_224041_create_productos_table.php @@ -18,6 +18,7 @@ public function up(): void $table->unsignedBigInteger('categoria_id'); $table->boolean('solidario'); $table->boolean('bono'); + $table->boolean('barrial')->default(false); $table->unsignedBigInteger('barrio_id')->nullable(); $table->timestamps(); $table->foreign('categoria_id')->references('id')->on('categorias');