reacftor(inventory): menyesuaikan migrasi
This commit is contained in:
parent
9eb8e757dd
commit
23c2204927
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user