Merge pull request #591 from dg9vh/bugfix_modes
enlarged submodes-field, updated cropped submodes to original content
这个提交包含在:
当前提交
3a7ab319da
共有 2 个文件被更改,包括 27 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 41;
|
$config['migration_version'] = 42;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_modify_modes_table extends CI_Migration {
|
||||||
|
|
||||||
|
public function up() {
|
||||||
|
$fields = array(
|
||||||
|
'submode' => array(
|
||||||
|
'name' => 'submode',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => '25',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$this->dbforge->modify_column('adif_modes', $fields);
|
||||||
|
|
||||||
|
$this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 16/500' where submode = 'OLIVIA 16/50';");
|
||||||
|
$this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 16/1000' where submode = 'OLIVIA 16/10';");
|
||||||
|
$this->db->query("UPDATE `adif_modes` set submode = 'OLIVIA 32/1000' where submode = 'OLIVIA 32/10';");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(){
|
||||||
|
echo "Not possible, sorry.";
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用