original_string: public function actionLevelUp()
      {
          Yii::$app->session->set(Update::SESSION_KEY, 0);
  
          $error = '';
          $info = '';
          $dbVersion = 0;
          $mdVersion = $this->module->version;
          $dbQuery = (new Query())->from('{{%podium_config}}')->select('value')->where(['name' => 'version'])->limit(1)->one();
          if (!isset($dbQuery['value'])) {
              $error = Yii::t('podium/flash', 'Error while checking current database version! Please verify your database.');
          } else {
              $dbVersion = $dbQuery['value'];
              $result = Helper::compareVersions(explode('.', $mdVersion), explode('.', $dbVersion));
              if ($result == '=') {
                  $info = Yii::t('podium/flash', 'Module and database versions are the same!');
              } elseif ($result == '<') {
                  $error = Yii::t('podium/flash', 'Module version appears to be older than database! Please verify your database.');
              }
          }
  
          Yii::$app->session->set(Update::SESSION_VERSION, $dbVersion);
  
          return $this->render('level-up', [
              'currentVersion' => $mdVersion,
              'dbVersion' => $dbVersion,
              'error' => $error,
              'info' => $info
          ]);
      }
code: public function actionLevelUp()
      {
          Yii::$app->session->set(Update::SESSION_KEY, 0);
  
          $error = '';
          $info = '';
          $dbVersion = 0;
          $mdVersion = $this->module->version;
          $dbQuery = (new Query())->from('{{%podium_config}}')->select('value')->where(['name' => 'version'])->limit(1)->one();
          if (!isset($dbQuery['value'])) {
              $error = Yii::t('podium/flash', 'Error while checking current database version! Please verify your database.');
          } else {
              $dbVersion = $dbQuery['value'];
              $result = Helper::compareVersions(explode('.', $mdVersion), explode('.', $dbVersion));
              if ($result == '=') {
                  $info = Yii::t('podium/flash', 'Module and database versions are the same!');
              } elseif ($result == '<') {
                  $error = Yii::t('podium/flash', 'Module version appears to be older than database! Please verify your database.');
              }
          }
  
          Yii::$app->session->set(Update::SESSION_VERSION, $dbVersion);
  
          return $this->render('level-up', [
              'currentVersion' => $mdVersion,
              'dbVersion' => $dbVersion,
              'error' => $error,
              'info' => $info
          ]);
      }
code_tokens: public function actionLevelUp ( ) { Yii :: $ app -> session -> set ( Update :: SESSION_KEY , 0 ) ; $ error = '' ; $ info = '' ; $ dbVersion = 0 ; $ mdVersion = $ this -> module -> version ; $ dbQuery = ( new Query ( ) ) -> from ( '{{%podium_config}}' ) -> select ( 'value' ) -> where ( [ 'name' => 'version' ] ) -> limit ( 1 ) -> one ( ) ; if ( ! isset ( $ dbQuery [ 'value' ] ) ) { $ error = Yii :: t ( 'podium/flash' , 'Error while checking current database version! Please verify your database.' ) ; } else { $ dbVersion = $ dbQuery [ 'value' ] ; $ result = Helper :: compareVersions ( explode ( '.' , $ mdVersion ) , explode ( '.' , $ dbVersion ) ) ; if ( $ result == '=' ) { $ info = Yii :: t ( 'podium/flash' , 'Module and database versions are the same!' ) ; } elseif ( $ result == '<' ) { $ error = Yii :: t ( 'podium/flash' , 'Module version appears to be older than database! Please verify your database.' ) ; } } Yii :: $ app -> session -> set ( Update :: SESSION_VERSION , $ dbVersion ) ; return $ this -> render ( 'level-up' , [ 'currentVersion' => $ mdVersion , 'dbVersion' => $ dbVersion , 'error' => $ error , 'info' => $ info ] ) ; }
docstring: Running the upgrade.
  @return string
  @since 0.2
docstring_tokens: Running the upgrade .