Added default papers to migration-script
这个提交包含在:
父节点
d5b8204e57
当前提交
6cdb88d26d
共有 1 个文件被更改,包括 47 次插入 和 43 次删除
|
|
@ -57,6 +57,10 @@ class Migration_create_label_paper_types_table extends CI_Migration {
|
|||
$this->dbforge->add_key('user_id', TRUE);
|
||||
|
||||
$this->dbforge->create_table('paper_types');
|
||||
$this->db->query("insert into paper_types (id,user_id,paper_name,metric,width,orientation,height) values ('1','1','A4','mm','210.000','P','297.000');");
|
||||
$this->db->query("insert into paper_types (id,user_id,paper_name,metric,width,orientation,height) values ('2','1','A5','mm','148.000','P','210.000');");
|
||||
$this->db->query("insert into paper_types (id,user_id,paper_name,metric,width,orientation,height) values ('3','1','letter','mm','215.900','P','279.400');");
|
||||
$this->db->query("insert ignore paper_types (user_id,paper_name,metric,width,orientation,height) SELECT u.user_id, pt.paper_name, pt.metric, pt.width, pt.orientation,pt.height FROM paper_types pt inner join users u where pt.id<4;");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用