aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-02 23:15:14 +0200
committerGravatar GitHub <noreply@github.com> 2016-08-02 23:15:14 +0200
commite4664142b7604b5eaa72df84fd0b0c8a8fc1e42f (patch)
treec16c560f937b5d06bb05dbe595fa9ab8a83f5fe5
parent4a516aef583f4292293026ebc1d1a3984b75b4e8 (diff)
parent3e1b2e75e01dfc9ac2414940adaf4d62251075e9 (diff)
Merge pull request #1194 from Alkarex/mysql_utf8mb4
Forgotten method name update for SQLite
-rw-r--r--app/Models/EntryDAOSQLite.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php
index ff049d813..19b97fd3a 100644
--- a/app/Models/EntryDAOSQLite.php
+++ b/app/Models/EntryDAOSQLite.php
@@ -2,11 +2,12 @@
class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
- protected function autoAddColumn($errorInfo) {
+ protected function autoUpdateDb($errorInfo) {
if (empty($errorInfo[0]) || $errorInfo[0] == '42S22') { //ER_BAD_FIELD_ERROR
+ //autoAddColumn
if ($tableInfo = $this->bd->query("SELECT sql FROM sqlite_master where name='entry'")) {
$showCreate = $tableInfo->fetchColumn();
- Minz_Log::debug('FreshRSS_EntryDAOSQLite::autoAddColumn: ' . $showCreate);
+ Minz_Log::debug('FreshRSS_EntryDAOSQLite::autoUpdateDb: ' . $showCreate);
foreach (array('lastSeen', 'hash') as $column) {
if (stripos($showCreate, $column) === false) {
return $this->addColumn($column);