<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class AlterOrdenesTrabajoAddCommentColumns extends Migration
{
    protected array $COLUMNS = [
        'comment_interior' => [
            'type' => 'LONGTEXT',
            'null' => true
        ],
        'comment_cubierta' => [
            'type' => 'LONGTEXT',
            'null' => true
        ],
        'comment_encuadernacion' => [
            'type' => 'LONGTEXT',
            'null' => true
        ],
        'comment_logistica' => [
            'type' => 'LONGTEXT',
            'null' => true
        ],
        "info_solapa_guillotina" => [
            'type' => 'LONGTEXT',
            'null' => true
        ]
    ];
    public function up()
    {

        $this->forge->addColumn('ordenes_trabajo',$this->COLUMNS);

    }

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

    }
}
