mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
69 lines
1.7 KiB
PHP
Executable File
69 lines
1.7 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AlterTarifasAcabadoAddBoleanColumns extends Migration
|
|
{
|
|
protected array $COLUMNS = [
|
|
'plastificado' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => false,
|
|
],
|
|
'plakene' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => false,
|
|
],
|
|
'rectractilado' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => false,
|
|
],
|
|
'estampado' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => false,
|
|
],
|
|
'uvi' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => false,
|
|
],
|
|
'plastificado_tipo' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['BRILLO','MATE','SANDY','GOFRADO','SOFT','ANTIRAYADO'],
|
|
'null' => true,
|
|
],
|
|
'plakene_tipo' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['TRASLUCIDO','MATE','NEGRO'],
|
|
'null' => true,
|
|
],
|
|
'rectractilado_tipo' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['1','3','5'],
|
|
'null' => true,
|
|
],
|
|
'estampado_tipo' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['ORO','PLATA','COBRE','BRONCE'],
|
|
'null' => true,
|
|
],
|
|
'uvi_tipo' => [
|
|
'type' => 'ENUM',
|
|
'constraint' => ['2D','3D','BRAILLE'],
|
|
'null' => true,
|
|
]
|
|
];
|
|
public function up()
|
|
{
|
|
|
|
$this->forge->addColumn('lg_tarifa_acabado',$this->COLUMNS);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('lg_tarifa_acabado',array_keys($this->COLUMNS));
|
|
|
|
}
|
|
}
|