From 0cd68f369eaeb335262b1f44ee112fcccccf93f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 26 May 2025 21:09:44 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1adida=20la=20migraci=C3=B3n=20de=20las?= =?UTF-8?q?=20lineas=20de=20albaran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2025-05-26-204800_ModifyAlbaranes.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ci4/app/Database/Migrations/2025-05-26-204800_ModifyAlbaranes.php diff --git a/ci4/app/Database/Migrations/2025-05-26-204800_ModifyAlbaranes.php b/ci4/app/Database/Migrations/2025-05-26-204800_ModifyAlbaranes.php new file mode 100644 index 00000000..738859d2 --- /dev/null +++ b/ci4/app/Database/Migrations/2025-05-26-204800_ModifyAlbaranes.php @@ -0,0 +1,31 @@ +forge->addColumn('albaranes_lineas', [ + 'cajas' => [ + 'type' => 'INT', + 'constraint' => 11, + 'null' => true, + ], + 'unidades_cajas' => [ + 'type' => 'INT', + 'constraint' => 11, + 'null' => true, + ] + ]); + } + + public function down() + { + $this->forge->dropColumn('albaranes_lineas', ['cajas', 'unidades_cajas']); + } +}