migration.php 393 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10
<?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";
?>

Alexander Makarov committed
11
class <?= $className ?> extends \yii\db\Migration
Qiang Xue committed
12 13 14 15 16 17 18 19
{
	public function up()
	{

	}

	public function down()
	{
Alexander Makarov committed
20
		echo "<?= $className ?> cannot be reverted.\n";
Qiang Xue committed
21 22 23
		return false;
	}
}