[Custom CSS Theme Support] Added migration script for creating the theme table
这个提交包含在:
父节点
a512a984aa
当前提交
5995b169c6
共有 2 个文件被更改,包括 22 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 70;
|
$config['migration_version'] = 71;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_Theme_table extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
// create themes table
|
||||||
|
$this->db->query("create table themes (id integer not null auto_increment, name varchar(256) not null, foldername varchar(256) not null, primary key (id)) ENGINE=myisam DEFAULT CHARSET=utf8;");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Blue','blue');");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Cosmo','cosmo');");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Cyborg (Dark)','cyborg');");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Darkly (Dark)','darkly');");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Default','default');");
|
||||||
|
$this->db->query("INSERT INTO themes (name, foldername) values ('Superhero (Dark)','superhero');");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(){
|
||||||
|
$this->db->query("");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
正在加载…
在新工单中引用