I wonder if I can revert all migrations in a folder without counting them and then inserting that number as param.
I need something like that:
yiic migrate down -all
framework/cli/command/MigrateCommand.php
...
public function actionDown($args)
{
$step=isset($args[0]) ? (int)$args[0] : 1;
if($step<1)
{
echo "Error: The step parameter must be greater than 0.\n";
return 1;
}
...
You have 2 choice: 1. use hack like yiic migrate down 9999; 2. extend MigrateCOmmand class and implemet this option.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.