<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class AddPhotoFormalUrlToStudentsTable extends Migration
{
    public function up()
    {
        $this->forge->addColumn('students', [
            'photo_formal_url' => [
                'type'       => 'VARCHAR',
                'constraint' => 255,
                'null'       => true,
                'after'      => 'face_hash',
                'comment'    => 'URL/path foto formal administrasi (mis. dari Drive)',
            ],
        ]);
    }

    public function down()
    {
        $this->forge->dropColumn('students', 'photo_formal_url');
    }
}

