mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-20 11:17:56 -05:00
* Draft of JSON column for feeds https://github.com/FreshRSS/FreshRSS/issues/1654 * Add some per-feed options * Feed cURL timeout * Mark updated articles as read https://github.com/FreshRSS/FreshRSS/issues/891 * Mark as read upon reception https://github.com/FreshRSS/FreshRSS/issues/1702 * Ignore SSL (unsafe) https://github.com/FreshRSS/FreshRSS/issues/1811 * Try PHPCS workaround While waiting for a better syntax support
18 lines
399 B
PHP
18 lines
399 B
PHP
<?php
|
|
|
|
class FreshRSS_FeedDAOSQLite extends FreshRSS_FeedDAO {
|
|
|
|
protected function autoUpdateDb($errorInfo) {
|
|
if ($tableInfo = $this->bd->query("PRAGMA table_info('feed')")) {
|
|
$columns = $tableInfo->fetchAll(PDO::FETCH_COLUMN, 1);
|
|
foreach (array('attributes') as $column) {
|
|
if (!in_array($column, $columns)) {
|
|
return $this->addColumn($column);
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|