migration.php 430 Bytes
Newer Older
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 */
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
echo "<?php\n";
?>

class <?= $className ?> extends \yii\mongodb\Migration
{
    public function up()
    {

    }

    public function down()
    {
        echo "<?= $className ?> cannot be reverted.\n";

        return false;
    }
}