mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'main' into 'feat/soporte'
create migration to add check_presupuesto_cliente column to tarifas tables... See merge request jjimenez/safekat!554
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Database\Migrations;
|
||||
|
||||
use CodeIgniter\Database\Migration;
|
||||
|
||||
class AlterTableTarifasCheckPresupuestoClienteMigration extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$field = [
|
||||
'mostrar_en_presupuesto_cliente' => [
|
||||
'type' => 'BOOLEAN',
|
||||
'default' => false,
|
||||
]
|
||||
];
|
||||
$this->forge->addColumn('lg_tarifa_acabado',$field);
|
||||
$this->forge->addColumn('lg_tarifa_manipulado',$field);
|
||||
$this->forge->addColumn('tarifa_encuadernacion',$field);
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->forge->dropColumn('lg_tarifa_acabado','mostrar_en_presupuesto_cliente');
|
||||
$this->forge->dropColumn('lg_tarifa_manipulado','mostrar_en_presupuesto_cliente');
|
||||
$this->forge->dropColumn('tarifa_encuadernacion','mostrar_en_presupuesto_cliente');
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Database\Migrations;
|
||||
|
||||
use CodeIgniter\Database\Migration;
|
||||
|
||||
class AlterAddColumnActivoPapelGenerico extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$field = [
|
||||
'activo' => [
|
||||
'type' => 'BOOLEAN',
|
||||
'default' => true,
|
||||
]
|
||||
];
|
||||
$this->forge->addColumn('lg_papel_generico',$field);
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->forge->dropColumn('lg_papel_generico','activo');
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Database\Migrations;
|
||||
|
||||
use CodeIgniter\Database\Migration;
|
||||
|
||||
class AlterTableTarifasExtraPreimpresionCheckPresupuestoClienteMigration extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$field = [
|
||||
'mostrar_en_presupuesto_cliente' => [
|
||||
'type' => 'BOOLEAN',
|
||||
'default' => false,
|
||||
]
|
||||
];
|
||||
$this->forge->addColumn('tarifa_extra',$field);
|
||||
$this->forge->addColumn('lg_tarifa_preimpresion',$field);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->forge->dropColumn('tarifa_extra','mostrar_en_presupuesto_cliente');
|
||||
$this->forge->dropColumn('lg_tarifa_preimpresion','mostrar_en_presupuesto_cliente');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user