Cloudlog/application/migrations/059_add_default_theme_to_options_table.php
Peter Goodhall be6550723c [Global Options] Created Migration for table "options" and added theme and default
This will be for global variables, anything that needs to stick for every user, default theme, dates etc etc etc
2020-12-10 17:45:44 +00:00

25 行
无行尾
602 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* This migration creates a table called options which will hold global options needed within cloudlog
* removing the need for lots of configuration files.
*/
class Migration_add_default_theme_to_options_table extends CI_Migration {
public function up()
{
$data = array(
array('option_name' => "theme", 'option_value' => "default", 'autoload' => "yes")
);
$this->db->insert_batch('options', $data);
}
public function down()
{
// No option to down
}
}