mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-09 18:06:47 -04:00
Merge pull request #1194 from Alkarex/mysql_utf8mb4
Forgotten method name update for SQLite
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user