Cloudlog/application/migrations/107_change_greencube_to_osc...

25 wiersze
586 B
PHP
Czysty Zwykły widok Historia

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
2022-11-16 14:54:06 +00:00
* Change Greencube to Oscar number
*/
class Migration_change_greencube_to_oscar extends CI_Migration {
public function up()
{
$this->db->set('COL_SAT_NAME', 'IO-117');
$this->db->set('COL_SAT_MODE', 'U');
$this->db->where('COL_SAT_NAME', 'GREENCUBE');
$this->db->update($this->config->item('table_name'));
}
public function down()
{
$this->db->set('COL_SAT_NAME', 'GREENCUBE');
$this->db->where('COL_SAT_NAME', 'IO-117');
$this->db->update($this->config->item('table_name'));
}
}