original_string: private static function setupModule()
      {
          // Check if ddmedia table was already created, if not create it.
          if (!self::tableExists('ddmedia')) {
              self::executeSQL(self::$_sCreateDdMediaSql);
          }
          // Check if ddmedia table has all needed fields, if not add them to the table.
          foreach (self::$_aSetupDdMediaSQLs as $sField => $sSql) {
              if (!self::fieldExists($sField, 'ddmedia')) {
                  self::executeSQL($sSql);
              }
          }
          /** @var \OxidEsales\Eshop\Core\Config $oConfig */
          $oConfig = Registry::getConfig();
          $oConfig->saveShopConfVar('bool', 'blModuleWasEnabled', 'true', $oConfig->getShopId(), 'module:ddoewysiwyg');
      }
code: private static function setupModule()
      {
          // Check if ddmedia table was already created, if not create it.
          if (!self::tableExists('ddmedia')) {
              self::executeSQL(self::$_sCreateDdMediaSql);
          }
          // Check if ddmedia table has all needed fields, if not add them to the table.
          foreach (self::$_aSetupDdMediaSQLs as $sField => $sSql) {
              if (!self::fieldExists($sField, 'ddmedia')) {
                  self::executeSQL($sSql);
              }
          }
          /** @var \OxidEsales\Eshop\Core\Config $oConfig */
          $oConfig = Registry::getConfig();
          $oConfig->saveShopConfVar('bool', 'blModuleWasEnabled', 'true', $oConfig->getShopId(), 'module:ddoewysiwyg');
      }
code_tokens: private static function setupModule ( ) { // Check if ddmedia table was already created, if not create it. if ( ! self :: tableExists ( 'ddmedia' ) ) { self :: executeSQL ( self :: $ _sCreateDdMediaSql ) ; } // Check if ddmedia table has all needed fields, if not add them to the table. foreach ( self :: $ _aSetupDdMediaSQLs as $ sField => $ sSql ) { if ( ! self :: fieldExists ( $ sField , 'ddmedia' ) ) { self :: executeSQL ( $ sSql ) ; } } /** @var \OxidEsales\Eshop\Core\Config $oConfig */ $ oConfig = Registry :: getConfig ( ) ; $ oConfig -> saveShopConfVar ( 'bool' , 'blModuleWasEnabled' , 'true' , $ oConfig -> getShopId ( ) , 'module:ddoewysiwyg' ) ; }
docstring: Execute the sql at the first time of the module installation.
docstring_tokens: Execute the sql at the first time of the module installation .