Add user config option to select whether to show qrz.com images
这个提交包含在:
父节点
926742ddbd
当前提交
73ce098676
共有 2 个文件被更改,包括 30 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 86;
|
$config['migration_version'] = 87;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Migration_create_eqsl_images_table
|
||||||
|
*
|
||||||
|
* Creates a boolean column with option to allow for activating showing of
|
||||||
|
* qrz.com profile picture in the log QSO section
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Migration_add_qrz_image_option extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
if (!$this->db->field_exists('show_qrz_image', 'users')) {
|
||||||
|
$fields = array(
|
||||||
|
'show_qrz_image BOOLEAN DEFAULT FALSE',
|
||||||
|
);
|
||||||
|
$this->dbforge->add_column('users', $fields);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$this->dbforge->drop_column('users', 'show_qrz_image');
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用