[CAT] Always set the timestamp data from PHP so its UTC

这个提交包含在:
Peter Goodhall 2022-08-03 16:50:09 +01:00
父节点 f473c15182
当前提交 c33c8e7153
共有 2 个文件被更改,包括 27 次插入1 次删除

查看文件

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| 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()
{
}
}