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

This commit is contained in:
Peter Goodhall
2022-08-03 16:50:09 +01:00
parent f473c15182
commit c33c8e7153
2 changed files with 27 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 94;
$config['migration_version'] = 95;
/*
|--------------------------------------------------------------------------

View File

@@ -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()
{
}
}