mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-24 21:27:56 -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
18 lines
413 B
PHP
18 lines
413 B
PHP
<?php
|
|
|
|
class FreshRSS_CategoryDAOSQLite extends FreshRSS_CategoryDAO {
|
|
|
|
protected function autoUpdateDb(array $errorInfo) {
|
|
if ($tableInfo = $this->pdo->query("PRAGMA table_info('category')")) {
|
|
$columns = $tableInfo->fetchAll(PDO::FETCH_COLUMN, 1);
|
|
foreach (['attributes'] as $column) {
|
|
if (!in_array($column, $columns)) {
|
|
return $this->addColumn($column);
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|