<?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('sms_gateways', function (Blueprint $table) {
            $table->tinyInteger('email_otp')->default(0)->after('password_g')
                ->comment('1=send OTP via email when SMS gateway is off');
        });
    }

    public function down(): void
    {
        Schema::table('sms_gateways', function (Blueprint $table) {
            $table->dropColumn('email_otp');
        });
    }
};
