mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
27 lines
525 B
PHP
27 lines
525 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AddAliasOtColumnMaquinasTable extends Migration
|
|
{
|
|
|
|
protected array $COLUMNS = [
|
|
"alias_ot" => [
|
|
"type" => "VARCHAR",
|
|
"constraint" => 255,
|
|
"null" => true
|
|
],
|
|
];
|
|
public function up()
|
|
{
|
|
$this->forge->addColumn('lg_maquinas', $this->COLUMNS);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('lg_maquinas', array_keys($this->COLUMNS));
|
|
}
|
|
}
|