añadido fijo de lomo interior en las funciones getcostelinea y getcostelinearotativa

This commit is contained in:
2025-07-02 14:24:26 +02:00
parent 7bfe9c002a
commit 40391405eb
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AumentoLomoFijo extends Migration
{
public function up()
{
$this->db->table('config_variables_app')->insert([
'name' => 'aumento_fijo_lomo_interior',
'value' => '1.3',
'description' => 'Aumento fijo del lomo interior por cola (se añade en el interior)',
'created_at' => date('Y-m-d H:i:s')
]);
}
public function down()
{
// Borrar los nuevos campos
$this->db->table('config_variables_app')->whereIn('name', [
'aumento_fijo_lomo_interior'
])->delete();
}
}