migration.php 413 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";
?>

11 12
use yii\db\Schema;

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

	}

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