<?php

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

return new class extends Migration
{
    public function up(): void
    {
        DB::statement("ALTER TABLE email_subscribers MODIFY source VARCHAR(50) NOT NULL DEFAULT 'footer'");
    }

    public function down(): void
    {
        DB::statement("ALTER TABLE email_subscribers MODIFY source ENUM('footer','popup','checkout','registration','account_settings','homepage_newsletter') NOT NULL DEFAULT 'footer'");
    }
};
