reacftor(inventory): menyesuaikan migrasi

This commit is contained in:
Yoga Pangestu 2024-11-26 23:35:16 +07:00
parent 9eb8e757dd
commit 23c2204927

View File

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