<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class ExtendFolioSequencesForDeliveryNotes extends Migration
{
    public function up()
    {
        $this->forge->modifyColumn('folio_sequences', [
            'kind' => ['name' => 'kind', 'type' => 'VARCHAR', 'constraint' => 40],
        ]);
    }

    public function down()
    {
        $this->forge->modifyColumn('folio_sequences', [
            'kind' => ['name' => 'kind', 'type' => "ENUM('inspection','report')"],
        ]);
    }
}
