Files
yii2/framework/views/migration.php
Carsten Brandt dbc6d106b4 reverted wrong changes after #2764
- readded removed file
- readded use statement to migration template
2014-03-16 21:01:53 +01:00

27 lines
444 B
PHP

<?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";
?>
use yii\db\Schema;
class <?= $className ?> extends \yii\db\Migration
{
public function up()
{
}
public function down()
{
echo "<?= $className ?> cannot be reverted.\n";
return false;
}
}