aboutsummaryrefslogtreecommitdiff
path: root/app/Models/TagDAOSQLite.php
blob: b1deb6c659b989af8755bc3bd429239346581bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

class FreshRSS_TagDAOSQLite extends FreshRSS_TagDAO {

	public function sqlIgnore() {
		return 'OR IGNORE';
	}

	protected function autoUpdateDb($errorInfo) {
		if ($tableInfo = $this->bd->query("SELECT sql FROM sqlite_master where name='tag'")) {
			$showCreate = $tableInfo->fetchColumn();
			if (stripos($showCreate, 'tag') === false) {
				return $this->createTagTable();	//v1.12.0
			}
		}
		return false;
	}

}