|
@@ -11,6 +11,15 @@ class FreshRSS_CategoryDAOSQLite extends FreshRSS_CategoryDAO {
|
|
|
/** @param array{0:string,1:int,2:string} $errorInfo */
|
|
/** @param array{0:string,1:int,2:string} $errorInfo */
|
|
|
#[\Override]
|
|
#[\Override]
|
|
|
protected function autoUpdateDb(array $errorInfo): bool {
|
|
protected function autoUpdateDb(array $errorInfo): bool {
|
|
|
|
|
+ if (isset($errorInfo[0])) {
|
|
|
|
|
+ $errorLines = explode("\n", $errorInfo[2], 2); // The relevant column name is on the first line, other lines are noise
|
|
|
|
|
+ if (str_contains($errorLines[0], 'f.')) { // Coming from a feed sub-query
|
|
|
|
|
+ $feedDao = FreshRSS_Factory::createFeedDao();
|
|
|
|
|
+ if ($feedDao->autoUpdateDb($errorInfo)) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
if (($tableInfo = $this->pdo->query("PRAGMA table_info('category')")) !== false) {
|
|
if (($tableInfo = $this->pdo->query("PRAGMA table_info('category')")) !== false) {
|
|
|
$columns = $tableInfo->fetchAll(PDO::FETCH_COLUMN, 1);
|
|
$columns = $tableInfo->fetchAll(PDO::FETCH_COLUMN, 1);
|
|
|
foreach (['kind', 'lastUpdate', 'error', 'attributes'] as $column) {
|
|
foreach (['kind', 'lastUpdate', 'error', 'attributes'] as $column) {
|