kopia lustrzana https://github.com/magicbug/Cloudlog
[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 @phl0pull/1444/head
rodzic
c8ac40ed56
commit
985e71638d
|
@ -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');
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue