Yii Framework Migrations - based on tool(1.1.14)
Straight Serial
1) Modify config.php under protected/config. Also change in main.php same directory.
2) Come to Command Prompt. (Type "cmd" in run menu)
3) Go to the project directory . e.g. :D\wamp\www\phpproject\protected
Type "php.exe yiic migrate create san"
where, "san" is the migrate php file
It will ask you to confirm to create migration or not.
Press Y to confirm.
New migration created successfully. The file would save in protected/migrate directory.
Executing the migration.
Go to the project directory . e.g. :D\wamp\www\phpproject\protected
Type "php.exe yiic migrate".
Migration file will restore your db in localhost server.
Straight Serial
1) Modify config.php under protected/config. Also change in main.php same directory.
2) Come to Command Prompt. (Type "cmd" in run menu)
3) Go to the project directory . e.g. :D\wamp\www\phpproject\protected
Type "php.exe yiic migrate create san"
where, "san" is the migrate php file
It will ask you to confirm to create migration or not.
Press Y to confirm.
New migration created successfully. The file would save in protected/migrate directory.
Executing the migration.
Go to the project directory . e.g. :D\wamp\www\phpproject\protected
Type "php.exe yiic migrate".
Migration file will restore your db in localhost server.