[Migration] 061 adds language to the options table default to english
这个提交包含在:
父节点
0d2dab1afe
当前提交
67ba28d145
共有 2 个文件被更改,包括 26 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 60;
|
$config['migration_version'] = 61;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?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_lang_to_options extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$data = array(
|
||||||
|
array('option_name' => "language", 'option_value' => "english", 'autoload' => "yes"),
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->db->insert_batch('options', $data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
// No option to down
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用