mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
37 lines
912 B
PHP
37 lines
912 B
PHP
<?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));
|
|
}
|
|
}
|