# CodeIgniter 迁移类 - 迁移参数

**URL:** <https://www.isharkfly.com/t/codeigniter/5171>\
**Category:** PHP\
**Created:** [January 8, 2014, 4:38am UTC](https://www.isharkfly.com/t/codeigniter/5171 "2014-01-08T04:38:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 8, 2014, 4:38am UTC](https://www.isharkfly.com/t/codeigniter/5171/1 "2014-01-08T04:38:40Z")

</div>

[p=20, null, left][color=rgb(51, 51, 51)]以下是迁移类的配置选项列表。[/color][/p][p=20, null, left][color=rgb(51, 51, 51)]  
[/color][/p][color=rgb(51, 51, 51)][table]  
[tr][td]参数  
[/td][td]默认值  
[/td][td]可选项  
[/td][td]描述  
[/td][/tr]  
[tr][td]migration\_enabled[/td][td]FALSE[/td][td]TRUE / FALSE[/td][td]启用或禁用迁移。[/td][/tr]  
[tr][td]migration\_version[/td][td]0[/td][td]无[/td][td]当前数据库所使用的版本。[/td][/tr]  
[tr][td]migration\_path[/td][td]APPPATH.‘migrations/’[/td][td]无[/td][td]迁移信息所在路径。[/td][/tr]  
[/table]  
文章来源：[/color][http://cwiki.ossez.com/pages/viewpage.action?pageId=2392165](http://cwiki.ossez.com/pages/viewpage.action?pageId=2392165)[color=rgb(51, 51, 51)]  
[/color]
