<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class AddLogoUrlToProviders extends Migration
{
    public function up(): void
    {
        $this->forge->addColumn('providers', [
            'logo_url' => [
                'type'       => 'VARCHAR',
                'constraint' => 512,
                'null'       => true,
                'after'      => 'provider_type',
            ],
        ]);
    }

    public function down(): void
    {
        $this->forge->dropColumn('providers', 'logo_url');
    }
}
