<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('scoli', function (Blueprint $table) {
            $table->string('termen_motivare_tip', 20)->default('zile_lucratoare')->after('termen_motivare_zi');
            $table->unsignedSmallInteger('termen_motivare_zile')->default(7)->after('termen_motivare_tip');
        });
    }

    public function down(): void
    {
        Schema::table('scoli', function (Blueprint $table) {
            $table->dropColumn(['termen_motivare_tip', 'termen_motivare_zile']);
        });
    }
};
