mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
301483bddf
Place themes in subfolders and use the folder name in the DB instead of the path to a single CSS file
18 lines
401 B
PHP
18 lines
401 B
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Migration_new_stylesheet_default extends CI_Migration {
|
|
|
|
public function up()
|
|
{
|
|
$sql = "UPDATE users SET user_stylesheet = 'default'";
|
|
$this->db->query($sql);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$sql = "UPDATE users SET user_stylesheet = 'bootstrap.min.css'";
|
|
$this->db->query($sql);
|
|
}
|
|
} |