mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-30 20:23:01 -04:00
Re-add database status in installation check (#8510)
* Re-add database status in installation check It got disabled in 2014 to get a beta out. Time to re-enable it. Tested on SQLite. "checkTable" now only verifies that at least the expected columns exist, but does not fail on additional columns provided by e.g. extensions. Related: https://github.com/FreshRSS/FreshRSS/issues/678 * make fix-all * i18n * Simpler and more correct content_bin * Fix PostgreSQL --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
@@ -44,20 +44,6 @@ class FreshRSS_DatabaseDAOSQLite extends FreshRSS_DatabaseDAO {
|
||||
return [];
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function entryIsCorrect(): bool {
|
||||
return $this->checkTable('entry', [
|
||||
'id', 'guid', 'title', 'author', 'content', 'link', 'date', 'lastSeen', 'hash', 'is_read', 'is_favorite', 'id_feed', 'tags',
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function entrytmpIsCorrect(): bool {
|
||||
return $this->checkTable('entrytmp', [
|
||||
'id', 'guid', 'title', 'author', 'content', 'link', 'date', 'lastSeen', 'hash', 'is_read', 'is_favorite', 'id_feed', 'tags'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string,string|int|bool|null> $dao
|
||||
* @return array{'name':string,'type':string,'notnull':bool,'default':mixed}
|
||||
|
||||
Reference in New Issue
Block a user