This commit is contained in:
lizandrogd
2026-01-19 21:51:23 -05:00
parent 2234a6f6e2
commit 4208c3bbf4
3 changed files with 50 additions and 3 deletions
@@ -0,0 +1,25 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('telas', function (Blueprint $table) {
// Cambiar a decimal para permitir valores con centavos
$table->decimal('valor_total', 12, 2)->change();
$table->decimal('costo_por_metro', 12, 2)->change();
});
}
public function down(): void
{
Schema::table('telas', function (Blueprint $table) {
$table->integer('valor_total')->change();
$table->integer('costo_por_metro')->change();
});
}
};