<?php

namespace App\Database\Migrations;

use App\Models\OrdenTrabajo\OrdenTrabajoTarea;
use CodeIgniter\Database\Migration;
use CodeIgniter\Database\RawSql;
use CodeIgniter\I18n\Time;

class AddClickColumnOrdenTrabajoTarea extends Migration
{

    protected array $COLUMNS = [
        "click_init" => [
            "type" => "INT",
            "unsigned" => true,
            "default" => 0,
            "comment" => "Click iniciales de una tarea de impresion"
        ],
        "click_end" => [
            "type" => "INT",
            "unsigned" => true,
            "default" => 0, 
            "comment" => "Click finales de una tarea de impresion"
        ],
    ];
    public function up()
    {
        $this->forge->addColumn('orden_trabajo_tareas', $this->COLUMNS);
    }

    public function down()
    {
        $this->forge->dropColumn('orden_trabajo_tareas', array_keys($this->COLUMNS));
    }
}
