fix C+P mistake
这个提交包含在:
父节点
ebe05aee8c
当前提交
5d9b69f403
共有 1 个文件被更改,包括 6 次插入 和 6 次删除
|
|
@ -3,17 +3,17 @@
|
|||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
* This adds an option to enable grid and name lookup
|
||||
* for WWFF references
|
||||
* This adds an option to enable grid lookup
|
||||
* by location entered
|
||||
*/
|
||||
|
||||
class Migration_user_auto_qth_option extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
if (!$this->db->field_exists('user_wwff_lookup', 'users')) {
|
||||
if (!$this->db->field_exists('user_qthlookup', 'users')) {
|
||||
$fields = array(
|
||||
'user_wwff_lookup integer DEFAULT 0 AFTER user_sota_lookup',
|
||||
'user_qth_lookup integer DEFAULT 0 AFTER user_wwff_lookup',
|
||||
);
|
||||
|
||||
$this->dbforge->add_column('users', $fields);
|
||||
|
|
@ -22,8 +22,8 @@ class Migration_user_auto_qth_option extends CI_Migration {
|
|||
|
||||
public function down()
|
||||
{
|
||||
if ($this->db->field_exists('user_wwff_lookup', 'users')) {
|
||||
$this->dbforge->drop_column('users', 'user_wwff_lookup');
|
||||
if ($this->db->field_exists('user_qth_lookup', 'users')) {
|
||||
$this->dbforge->drop_column('users', 'user_qth_lookup');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用