From 23c2204927cb04edada377836b3037377ae34605 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Tue, 26 Nov 2024 23:35:16 +0700 Subject: [PATCH] reacftor(inventory): menyesuaikan migrasi --- .../migrations/2024_11_18_191906_create_inventory_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_11_18_191906_create_inventory_table.php b/database/migrations/2024_11_18_191906_create_inventory_table.php index 2fb5e66..efc8579 100644 --- a/database/migrations/2024_11_18_191906_create_inventory_table.php +++ b/database/migrations/2024_11_18_191906_create_inventory_table.php @@ -17,7 +17,7 @@ public function up(): void $table->foreignId('barbershop_id')->constrained('barbershop')->cascadeOnDelete(); $table->string('name', 100); $table->integer('quantity'); - $table->decimal('price', 10, 0); + $table->decimal('price', 10, 2); $table->text('description'); $table->timestamps(); $table->softDeletes(); @@ -29,6 +29,6 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('inventories'); + Schema::dropIfExists('inventory'); } };