PHP Classes

File: views/migration/migration.php

Recommend this page to a friend!
  Classes of Uldis Nelsons   D3 System   views/migration/migration.php   Download  
File: views/migration/migration.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: D3 System
Framework to edit model data using CRUD interfaces
Author: By
Last change:
Date: 2 years ago
Size: 553 bytes
 

Contents

Class file image Download
<?php

/**
 * This view is used by console/controllers/MigrateController.php
 * The following variables are available in this view:
 */
/* @var $className string the new migration class name */

echo "<?php\n";
?>

use yii\db\Migration;

/**
* Class <?= $className ?>
*/
class <?= $className ?> extends Migration
{
    /**
    * {@inheritdoc}
    */
    public function safeUp()
    {
        $this->execute('

        ');
    }

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

}