TagDAOSQLite.php 425 B

12345678910111213141516171819
  1. <?php
  2. class FreshRSS_TagDAOSQLite extends FreshRSS_TagDAO {
  3. public function sqlIgnore() {
  4. return 'OR IGNORE';
  5. }
  6. protected function autoUpdateDb($errorInfo) {
  7. if ($tableInfo = $this->pdo->query("SELECT sql FROM sqlite_master where name='tag'")) {
  8. $showCreate = $tableInfo->fetchColumn();
  9. if (stripos($showCreate, 'tag') === false) {
  10. return $this->createTagTable(); //v1.12.0
  11. }
  12. }
  13. return false;
  14. }
  15. }