<?php

namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;

class CheckWebClientesPapeles extends Migration
{
    public function up()
    {
        $fields = [
            'show_in_client' => [
                'type'       => 'TINYINT',
                'constraint' => 1,
                'null'       => false,
                'default'    => 0,
            ],
        ];

        $this->forge->addColumn('lg_papel_impresion', $fields);
    }

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