mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
- Prototipo PDF - Ferro PDF - Ferro OK fecha cambiado a Ferro/Prototipo OK - Comentarios para orden,impresion,cubierta,encuadernacion y logistica - Migración para comentarios - Tarifas acabado migraciones con campos para identificar mejor si es plastificado,plakene,retractilado y el tipo de cada uno
40 lines
835 B
PHP
Executable File
40 lines
835 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
|
|
],
|
|
];
|
|
public function up()
|
|
{
|
|
|
|
$this->forge->addColumn('ordenes_trabajo',$this->COLUMNS);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('ordenes_trabajo',array_keys($this->COLUMNS));
|
|
|
|
}
|
|
}
|