mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add alias_ot field to lg_maquinas
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user