Fix typo in COL_AWARD_SUMMITED column
这个提交包含在:
父节点
065c2f96f9
当前提交
d388e6dc4b
共有 4 个文件被更改,包括 33 次插入 和 3 次删除
|
|
@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$config['migration_version'] = 160;
|
$config['migration_version'] = 161;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class AdifHelper {
|
||||||
'ANT_PATH',
|
'ANT_PATH',
|
||||||
'ARRL_SECT',
|
'ARRL_SECT',
|
||||||
'AWARD_GRANTED',
|
'AWARD_GRANTED',
|
||||||
'AWARD_SUMMITED', // Typo in DB!
|
'AWARD_SUBMITTED',
|
||||||
'BAND',
|
'BAND',
|
||||||
'BAND_RX',
|
'BAND_RX',
|
||||||
'BIOGRAPHY',
|
'BIOGRAPHY',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Migration_award_submitted_typo
|
||||||
|
*
|
||||||
|
* Fix typo in COL_AWARD_SUMMITED column
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Migration_award_submitted_typo extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$this->db->query(
|
||||||
|
'ALTER TABLE ' .
|
||||||
|
$this->db->escape_identifiers($this->config->item('table_name')) .
|
||||||
|
' RENAME COLUMN COL_AWARD_SUMMITED TO COL_AWARD_SUBMITTED'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$this->db->query(
|
||||||
|
'ALTER TABLE ' .
|
||||||
|
$this->db->escape_identifiers($this->config->item('table_name')) .
|
||||||
|
' RENAME COLUMN COL_AWARD_SUBMITTED TO COL_AWARD_SUMMITED'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3472,7 +3472,7 @@ function lotw_last_qsl_date($user_id) {
|
||||||
'COL_ANT_PATH' => $input_ant_path,
|
'COL_ANT_PATH' => $input_ant_path,
|
||||||
'COL_ARRL_SECT' => (!empty($record['arrl_sect'])) ? $record['arrl_sect'] : '',
|
'COL_ARRL_SECT' => (!empty($record['arrl_sect'])) ? $record['arrl_sect'] : '',
|
||||||
'COL_AWARD_GRANTED' => (!empty($record['award_granted'])) ? $record['award_granted'] : '',
|
'COL_AWARD_GRANTED' => (!empty($record['award_granted'])) ? $record['award_granted'] : '',
|
||||||
'COL_AWARD_SUMMITED' => (!empty($record['award_submitted'])) ? $record['award_submitted'] : '',
|
'COL_AWARD_SUBMITTED' => (!empty($record['award_submitted'])) ? $record['award_submitted'] : '',
|
||||||
'COL_BAND' => $band,
|
'COL_BAND' => $band,
|
||||||
'COL_BAND_RX' => $band_rx,
|
'COL_BAND_RX' => $band_rx,
|
||||||
'COL_BIOGRAPHY' => (!empty($record['biography'])) ? $record['biography'] : '',
|
'COL_BIOGRAPHY' => (!empty($record['biography'])) ? $record['biography'] : '',
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用