You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
399 B
18 lines
399 B
7 years ago
|
<?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;
|
||
|
}
|
||
|
|
||
|
}
|