Finished console support.

Finished migrate command.
This commit is contained in:
Qiang Xue
2013-02-03 19:37:29 -05:00
parent 6a595de4be
commit af4455eb03
5 changed files with 332 additions and 189 deletions

View File

@ -0,0 +1,23 @@
<?php
/**
* This view is used by console/controllers/MigrateController.php
* The following variables are available in this view:
*
* @var string $className the new migration class name
*/
echo "<?php\n";
?>
class <?php echo $className; ?> extends \yii\db\Migration
{
public function up()
{
}
public function down()
{
echo "<?php echo $className; ?> cannot be reverted.\n";
return false;
}
}