[Satellites] Change exisiting QSOs to IO-117

这个提交包含在:
Peter Goodhall 2022-11-16 13:58:36 +00:00
父节点 adf23b58c2
当前提交 1e1e8fb1c4
共有 2 个文件被更改,包括 27 次插入1 次删除

查看文件

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to. | be upgraded / downgraded to.
| |
*/ */
$config['migration_version'] = 105; $config['migration_version'] = 106;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

查看文件

@ -0,0 +1,26 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* This adds an option to enable grid lookup
* by location entered
*/
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'));
}
}