<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class AddBarberAddressJoinDate extends Migration
{
    public function up()
    {
        $this->forge->addColumn('barbers', [
            'address' => ['type' => 'TEXT', 'null' => true, 'after' => 'name'],
            'join_date' => ['type' => 'DATE', 'null' => true, 'after' => 'address'],
        ]);
    }

    public function down()
    {
        $this->forge->dropColumn('barbers', ['address', 'join_date']);
    }
}
