mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
44 lines
944 B
PHP
Executable File
44 lines
944 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AlterOrdenesTrabajoAddCommentColumns extends Migration
|
|
{
|
|
protected array $COLUMNS = [
|
|
'comment_interior' => [
|
|
'type' => 'LONGTEXT',
|
|
'null' => true
|
|
],
|
|
'comment_cubierta' => [
|
|
'type' => 'LONGTEXT',
|
|
'null' => true
|
|
],
|
|
'comment_encuadernacion' => [
|
|
'type' => 'LONGTEXT',
|
|
'null' => true
|
|
],
|
|
'comment_logistica' => [
|
|
'type' => 'LONGTEXT',
|
|
'null' => true
|
|
],
|
|
"info_solapa_guillotina" => [
|
|
'type' => 'LONGTEXT',
|
|
'null' => true
|
|
]
|
|
];
|
|
public function up()
|
|
{
|
|
|
|
$this->forge->addColumn('ordenes_trabajo',$this->COLUMNS);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('ordenes_trabajo',array_keys($this->COLUMNS));
|
|
|
|
}
|
|
}
|