public function getMigrationName($name = '') {
        $name = $name ? : $this->prefix . $this->tableNameRaw;

        $components = Yii::$app->getComponents();
        if (isset($components['session'])) {
            Yii::$app->session->set($this->tableName, '');
        }
        $this->migrationName= $this->migrationName ? : 'm' . gmdate('ymd_His') . '_' . $name;

        $name = $this->saveTblNameInSession($this->migrationName);

        return $name;
    }
public function getMigrationName($name = '') {
        $name = $name ? : $this->prefix . $this->tableNameRaw;

        $components = Yii::$app->getComponents();
        if (isset($components['session'])) {
            Yii::$app->session->set($this->tableName, '');
        }
        $this->migrationName= $this->migrationName ? : 'm' . gmdate('ymd_His') . '_' . $name;

        $name = $this->saveTblNameInSession($this->migrationName);

        return $name;
    }
public function getMigrationName ( $ name = '' ) { $ name = $ name ? : $ this -> prefix . $ this -> tableNameRaw ; $ components = Yii :: $ app -> getComponents ( ) ; if ( isset ( $ components [ 'session' ] ) ) { Yii :: $ app -> session -> set ( $ this -> tableName , '' ) ; } $ this -> migrationName = $ this -> migrationName ? : 'm' . gmdate ( 'ymd_His' ) . '_' . $ name ; $ name = $ this -> saveTblNameInSession ( $ this -> migrationName ) ; return $ name ; }
Auto generate migration name
@param string $name Migration name
@return mixed|string
Auto generate migration name