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

pull/1553/head
Peter Goodhall 2022-08-03 16:50:09 +01:00
rodzic f473c15182
commit c33c8e7153
2 zmienionych plików z 27 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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