From 9dee74e2cba44ba0f96e30dfbeb27e071c894a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 20 Nov 2024 16:39:57 +0100 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20fichero=20de=20migracion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024-11-19-185529_TicksPapeles.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ci4/app/Database/Migrations/2024-11-19-185529_TicksPapeles.php diff --git a/ci4/app/Database/Migrations/2024-11-19-185529_TicksPapeles.php b/ci4/app/Database/Migrations/2024-11-19-185529_TicksPapeles.php new file mode 100644 index 00000000..4972e2df --- /dev/null +++ b/ci4/app/Database/Migrations/2024-11-19-185529_TicksPapeles.php @@ -0,0 +1,40 @@ + [ + 'type' => 'TINYINT', + 'constraint' => 1, + 'null' => false, + 'default' => 0, + ], + ]; + + $this->forge->addColumn('lg_papel_generico', $fields); + + $fields = [ + 'show_in_client_special' => [ + 'type' => 'TINYINT', + 'constraint' => 1, + 'null' => false, + 'default' => 0, + ], + ]; + + $this->forge->addColumn('lg_papel_impresion', $fields); + } + + public function down() + { + $this->forge->dropColumn('lg_papel_generico', 'show_in_client_special'); + $this->forge->dropColumn('lg_papel_impresion', 'show_in_client_special'); + + } +}