kopia lustrzana https://github.com/magicbug/Cloudlog
[CAT] Always set the timestamp data from PHP so its UTC
rodzic
f473c15182
commit
c33c8e7153
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue