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']); + } +}