<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>

CC BY-SA 3.0
2014-10-21T01:45:46.420Z
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?
Douglas McDonald
CC BY-SA 3.0
2014-10-21T00:15:02.167Z
2014-10-21T06:08:29.257Z
2014-10-21T06:08:29.257Z
Brad Bell
<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>

CC BY-SA 3.0
2014-10-21T00:02:03.407Z
Yeah, covering quite a few topics worth their own answers. Split 'em up and I'll give it a go.
Brad Bell
CC BY-SA 3.0
2014-10-21T00:08:45.457Z
@Brad Thanks Brad. I'll start here, and see where this leads us. ;)
Douglas McDonald
<migration><deployment>
Are there any Craft specific migration tools that extend Yii's built-in functionality?
# 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**: @Brad Thanks Brad. 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?  

---

