1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 21:41:28 +00:00

bayes: fix psql schema typo

This commit is contained in:
Andrew Dolgov
2015-06-17 19:42:41 +03:00
parent 4da0cb323f
commit d62a5e0cb2

View File

@@ -170,7 +170,7 @@ class Af_Sort_Bayes extends Plugin {
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_categories ( $this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_categories (
id SERIAL NOT NULL PRIMARY KEY, id SERIAL NOT NULL PRIMARY KEY,
category varchar(100) NOT NULL DEFAULT '', category varchar(100) NOT NULL DEFAULT '',
probability DOUBLE NOT NULL DEFAULT '0', probability DOUBLE PRECISION NOT NULL DEFAULT '0',
owner_uid INTEGER NOT NULL REFERENCES ttrss_users(id) ON DELETE CASCADE, owner_uid INTEGER NOT NULL REFERENCES ttrss_users(id) ON DELETE CASCADE,
word_count BIGINT NOT NULL DEFAULT '0')"); word_count BIGINT NOT NULL DEFAULT '0')");