diff options
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 8306320a0..8a006f802 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -26,26 +26,6 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo { return str_replace('INSERT INTO ', 'INSERT IGNORE INTO ', $sql); } - //TODO: Move the database auto-updates to DatabaseDAO - protected function createEntryTempTable(): bool { - $ok = false; - $hadTransaction = $this->pdo->inTransaction(); - if ($hadTransaction) { - $this->pdo->commit(); - } - try { - require(APP_PATH . '/SQL/install.sql.' . $this->pdo->dbType() . '.php'); - Minz_Log::warning('SQL CREATE TABLE entrytmp...'); - $ok = $this->pdo->exec($GLOBALS['SQL_CREATE_TABLE_ENTRYTMP'] . $GLOBALS['SQL_CREATE_INDEX_ENTRY_1']) !== false; - } catch (Exception $ex) { - Minz_Log::error(__method__ . ' error: ' . $ex->getMessage()); - } - if ($hadTransaction) { - $this->pdo->beginTransaction(); - } - return $ok; - } - private function updateToMediumBlob(): bool { if ($this->pdo->dbType() !== 'mysql') { return false; @@ -96,14 +76,6 @@ SQL; } } } - if ($errorInfo[0] === FreshRSS_DatabaseDAO::ER_BAD_TABLE_ERROR) { - if (stripos($errorInfo[2], 'tag') !== false) { - $tagDAO = FreshRSS_Factory::createTagDao(); - return $tagDAO->createTagTable(); //v1.12.0 - } elseif (stripos($errorInfo[2], 'entrytmp') !== false) { - return $this->createEntryTempTable(); //v1.7.0 - } - } } if (isset($errorInfo[1])) { if ($errorInfo[1] == FreshRSS_DatabaseDAO::ER_DATA_TOO_LONG) { |
