mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
create migration to add check_presupuesto_cliente column to tarifas tables (encuadernacion,manipulado,acabado)
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 = [
|
||||||
|
'check_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','check_presupuesto_cliente');
|
||||||
|
$this->forge->dropColumn('lg_tarifa_manipulado','check_presupuesto_cliente');
|
||||||
|
$this->forge->dropColumn('tarifa_encuadernacion','check_presupuesto_cliente');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user