예제 #1
0
 /**
  * Creates the tables needed for the cache backend.
  *
  * @return void
  * @throws \RuntimeException if something goes wrong
  */
 protected function createCacheTables()
 {
     try {
         \TYPO3\CMS\Core\Database\PdoHelper::importSql($this->databaseHandle, $this->pdoDriver, \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('core') . 'Resources/Private/Sql/Cache/Backend/PdoBackendCacheAndTags.sql');
     } catch (\PDOException $e) {
         throw new \RuntimeException('Could not create cache tables with DSN "' . $this->dataSourceName . '". PDO error: ' . $e->getMessage(), 1259576985);
     }
 }
예제 #2
0
 /**
  * Creates the tables needed for the cache backend.
  *
  * @return void
  * @throws \RuntimeException if something goes wrong
  */
 protected function createCacheTables()
 {
     try {
         \TYPO3\CMS\Core\Database\PdoHelper::importSql($this->databaseHandle, $this->pdoDriver, PATH_t3lib . 'cache/backend/resources/ddl.sql');
     } catch (\PDOException $e) {
         throw new \RuntimeException('Could not create cache tables with DSN "' . $this->dataSourceName . '". PDO error: ' . $e->getMessage(), 1259576985);
     }
 }