We have a huge app built on Yii.
So far migrating was done by copy-pasting SQL dumps in phpliteadmin/phpmyadmin, but that's not very convenient.
I want to use CDbMigration
s for it, with yiic migrate
.
The issue is that we have two databases - a small sqlite one for config and settings, and large mysql for storing some historical records.
How do I specify what database the migration belongs to?
This is the basic migration structure, for illustration.
class do_stuff extends CDbMigration
{
public function up()
{
// create table
}
public function down()
{
// drop table
}
}