[CAT] Always set the timestamp data from PHP so its UTC
这个提交包含在:
父节点
f473c15182
当前提交
c33c8e7153
共有 2 个文件被更改,包括 27 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 94;
|
$config['migration_version'] = 95;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Migration_rename_profile_images
|
||||||
|
*
|
||||||
|
* Renames the qrz profile images column to also make it
|
||||||
|
* suitable for hamqth.com
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Migration_cat_change_timestamp extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
if ($this->db->field_exists('timestamp', 'cat')) {
|
||||||
|
$this->db->query("ALTER TABLE `cat` CHANGE `timestamp` `timestamp` TIMESTAMP NULL DEFAULT NULL;");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用