From a0b5f3b4dfb9b6e2673eea7984e2f3a15e0dce0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Sun, 27 Apr 2025 09:51:52 +0200 Subject: [PATCH] trabajando en envio de ferros --- .../2025-04-26-200000_AddTipoEnvioEnvios.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ci4/app/Database/Migrations/2025-04-26-200000_AddTipoEnvioEnvios.php diff --git a/ci4/app/Database/Migrations/2025-04-26-200000_AddTipoEnvioEnvios.php b/ci4/app/Database/Migrations/2025-04-26-200000_AddTipoEnvioEnvios.php new file mode 100644 index 00000000..228ee536 --- /dev/null +++ b/ci4/app/Database/Migrations/2025-04-26-200000_AddTipoEnvioEnvios.php @@ -0,0 +1,30 @@ + [ + "type" => "enum", + "constraint" => ['estandar', 'ferro_prototipo'], + "default" => 'estandar', + "comment" => "Indica el tipo de envio", + ], + ]; + public function up() + { + $this->forge->addColumn('envios', $this->COLUMNS); + } + + public function down() + { + $this->forge->dropColumn('envios', array_keys($this->COLUMNS)); + } +}