Answers.Body: <p>Craft has it's own version of Yii's console app, <a href="http://www.yiiframework.com/doc/guide/1.1/en/topics.console" rel="nofollow">yiic</a>, in <code>craft/app/etc/console/yiic.php</code> and we have a <code>migrate</code> command that lets you create, view history, see new migrations, etc. for plugins as well as Craft itself.</p>
  
  <p>We've extended the default <code>migrate</code> command to add Craft-specific features and remove some default Yii functionality that we don't want to support (i.e. down migrations).</p>
  
  <p>You can see the available commands to run here: <a href="http://buildwithcraft.com/docs/plugins/migrations" rel="nofollow">http://buildwithcraft.com/docs/plugins/migrations</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-21T01:45:46.420Z
Answers.Text: Excellent. Thank you. I don't know how I missed this in the docs. I'll investigate this a bit, and ask more as needed. But real quick, the docs are geared toward plugin development (which is great) — is there similar documentation for migrating the main craft DB?
Answers.UserDisplayName: Douglas McDonald
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-10-21T00:15:02.167Z
Answers.LastActivityDate: 2014-10-21T06:08:29.257Z
Answers.LastEditDate: 2014-10-21T06:08:29.257Z
Answers.UserDisplayName: Brad Bell
Body: <p>We're working on developing a proper deployment system for projects built on Craft, and wondering if there are any Craft specific tools built-in that can assist with generating database migrations, other than <a href="http://www.yiiframework.com/doc/guide/1.1/en/database.migration" rel="nofollow">those included with Yii</a> itself?</p>
  
  <p>I have more questions, but we'll start here.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-21T00:02:03.407Z
Comments.Text: Yeah, covering quite a few topics worth their own answers. Split 'em up and I'll give it a go.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-21T00:08:45.457Z
Comments.Text: @Brad Thanks Brad. I'll start here, and see where this leads us. ;)
Comments.UserDisplayName: Douglas McDonald
Tags: <migration><deployment>
Title: Are there any Craft specific migration tools that extend Yii's built-in functionality?
ThreadText: # Are there any Craft specific migration tools that extend Yii's built-in functionality?
  
  (Asked by: username_0 on 2014-10-21)
  
  We're working on developing a proper deployment system for projects built on Craft, and wondering if there are any Craft specific tools built-in that can assist with generating database migrations, other than [those included with Yii](http://www.yiiframework.com/doc/guide/1.1/en/database.migration) itself?
  
  I have more questions, but we'll start here.
  
  **Tags:** migration, deployment
  
  > **Comments:**
  > **username_1**: Yeah, covering quite a few topics worth their own answers. Split 'em up and I'll give it a go.  
  > **username_0**: @username_1 Thanks username_1. I'll start here, and see where this leads us. ;)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-10-21. Score: 1 | Accepted answer
  
  Craft has it's own version of Yii's console app, [yiic](http://www.yiiframework.com/doc/guide/1.1/en/topics.console), in `craft/app/etc/console/yiic.php` and we have a `migrate` command that lets you create, view history, see new migrations, etc. for plugins as well as Craft itself.
  
  We've extended the default `migrate` command to add Craft-specific features and remove some default Yii functionality that we don't want to support (i.e. down migrations).
  
  You can see the available commands to run here: <http://buildwithcraft.com/docs/plugins/migrations>
  
  > **Comments:**
  > **username_0**: Excellent. Thank you. I don't know how I missed this in the docs. I'll investigate this a bit, and ask more as needed. But real quick, the docs are geared toward plugin development (which is great) — is there similar documentation for migrating the main craft DB?  
  
  ---
  
  