mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
26 lines
667 B
PHP
26 lines
667 B
PHP
<?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();
|
|
}
|
|
}
|