guardando direcciones ferro en presupuesto cliente

This commit is contained in:
2025-06-28 11:27:39 +02:00
parent 410d21dc5f
commit 9fcda514f0
8 changed files with 324 additions and 120 deletions

View File

@ -0,0 +1,30 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class DireccionesFerroPrototipo extends Migration
{
public function up()
{
// Insertar nuevo campo: lomo_maximo_espiral
$this->forge->addColumn('presupuesto_direcciones', [
'num_ferro_prototipo' => [
'type' => 'INT',
'constraint' => 3,
'null' => false,
'default' => '0',
'description' => 'numero de ferro/prototipo',
],
]);
}
public function down()
{
$this->db->table('presupuesto_direcciones')->whereIn('name', [
'num_ferro_prototipo',
'lomo_maximo_wireo'
])->delete();
}
}