<?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();
        });
    }
};