[Migration][Options] set the theme to auto load
Automatically load the theme which fixes issue of it not working correctly when not logged in as reported by @phl0
这个提交包含在:
父节点
c8ac40ed56
当前提交
985e71638d
共有 2 个文件被更改,包括 25 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 85;
|
||||
$config['migration_version'] = 86;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
Creates column public_slug in table station_logbooks
|
||||
*/
|
||||
|
||||
class Migration_options_autoload_theme extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->db->set('autoload', 'yes');
|
||||
$this->db->where('option_name', "theme");
|
||||
$this->db->update('options');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->db->set('autoload', 'no');
|
||||
$this->db->where('option_name', "theme");
|
||||
$this->db->update('options');
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用