mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando en envio de ferros
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Database\Migrations;
|
||||
|
||||
use App\Models\OrdenTrabajo\OrdenTrabajoTarea;
|
||||
use CodeIgniter\Database\Migration;
|
||||
use CodeIgniter\Database\RawSql;
|
||||
use CodeIgniter\I18n\Time;
|
||||
|
||||
class AddTipoEnvioEnvios extends Migration
|
||||
{
|
||||
|
||||
protected array $COLUMNS = [
|
||||
"tipo_envio" => [
|
||||
"type" => "enum",
|
||||
"constraint" => ['estandar', 'ferro_prototipo'],
|
||||
"default" => 'estandar',
|
||||
"comment" => "Indica el tipo de envio",
|
||||
],
|
||||
];
|
||||
public function up()
|
||||
{
|
||||
$this->forge->addColumn('envios', $this->COLUMNS);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->forge->dropColumn('envios', array_keys($this->COLUMNS));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user