mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-25 21:58:03 -05:00
* Fix Fever 32 bit ID issue + more PHP type hints #fix https://github.com/FreshRSS/FreshRSS/issues/4200 Follow up and fix regression from https://github.com/FreshRSS/FreshRSS/pull/4110 * More PHP type hints with PHPStan * Fix pull problem * Avoid more nulls
17 lines
400 B
PHP
17 lines
400 B
PHP
<?php
|
|
|
|
class FreshRSS_FeedDAOSQLite extends FreshRSS_FeedDAO {
|
|
|
|
protected function autoUpdateDb(array $errorInfo) {
|
|
if ($tableInfo = $this->pdo->query("PRAGMA table_info('feed')")) {
|
|
$columns = $tableInfo->fetchAll(PDO::FETCH_COLUMN, 1);
|
|
foreach (['attributes'] as $column) {
|
|
if (!in_array($column, $columns)) {
|
|
return $this->addColumn($column);
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|