From b6b8df0061b939380b81c3f85c69ec050c862d15 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Sun, 16 Feb 2025 19:53:02 +0000 Subject: [PATCH] create migration to add check_presupuesto_cliente column to tarifas tables (encuadernacion,manipulado,acabado) --- ...arifasCheckPresupuestoClienteMigration.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ci4/app/Database/Migrations/2025-02-16-194726_AlterTableTarifasCheckPresupuestoClienteMigration.php diff --git a/ci4/app/Database/Migrations/2025-02-16-194726_AlterTableTarifasCheckPresupuestoClienteMigration.php b/ci4/app/Database/Migrations/2025-02-16-194726_AlterTableTarifasCheckPresupuestoClienteMigration.php new file mode 100644 index 00000000..c02e27e2 --- /dev/null +++ b/ci4/app/Database/Migrations/2025-02-16-194726_AlterTableTarifasCheckPresupuestoClienteMigration.php @@ -0,0 +1,29 @@ + [ + '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'); + } +}