mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
31 lines
671 B
PHP
Executable File
31 lines
671 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
use CodeIgniter\Database\RawSql;
|
|
|
|
class AddMaquinistaFieldsOrdenTrabajoTareas extends Migration
|
|
{
|
|
|
|
protected array $COLUMNS = [
|
|
"estado" => [
|
|
"type" => "ENUM",
|
|
"constraint" => ["P","I","D","F","E"],
|
|
"default" => "P",
|
|
"comment" => "(P)ENDING,(I)NIT,(D)ELAY,(F)INISHED,(E)RROR"
|
|
]
|
|
];
|
|
public function up()
|
|
{
|
|
$this->forge->addColumn("orden_trabajo_tareas", $this->COLUMNS);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn("orden_trabajo_tareas",array_keys($this->COLUMNS));
|
|
|
|
}
|
|
}
|