migration.php 459 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5
<?php
/**
 * This view is used by console/controllers/MigrateController.php
 * The following variables are available in this view:
 */
6 7
/* @var $className string the new migration class name */

Qiang Xue committed
8 9 10
echo "<?php\n";
?>

11
use yii\db\Schema;
Mark committed
12
use yii\db\Migration;
13

Mark committed
14
class <?= $className ?> extends Migration
Qiang Xue committed
15
{
16 17 18 19
    public function up()
    {

    }
Qiang Xue committed
20

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

25 26
        return false;
    }
Qiang Xue committed
27
}