migration.php 444 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
    public function up()
    {

    }
Qiang Xue committed
19

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

24 25
        return false;
    }
Qiang Xue committed
26
}