Migrating Test DB

I’m looking for a way to execute yii migrate for the test database too.

Any idea?

Thanks for your advice,


Any idea? Please!

Add the configuration for your test db to a second db component (e.g. ‘testdb’) in your console.php. Then execute yiic migrate a second time like this:

yiic migrate up --connectionID=testdb 



Alternatively you could try to use the commandMap feature and create a custom command "migratetest"…

Thanks Mike, that works.