mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 23:21:30 +00:00
bayes: remote unused content field for references schema
This commit is contained in:
@@ -154,8 +154,7 @@ class Af_Sort_Bayes extends Plugin {
|
|||||||
category_id INTEGER NOT NULL,
|
category_id INTEGER NOT NULL,
|
||||||
FOREIGN KEY (category_id) REFERENCES ${prefix}_categories(id) ON DELETE CASCADE,
|
FOREIGN KEY (category_id) REFERENCES ${prefix}_categories(id) ON DELETE CASCADE,
|
||||||
owner_uid INTEGER NOT NULL,
|
owner_uid INTEGER NOT NULL,
|
||||||
FOREIGN KEY (owner_uid) REFERENCES ttrss_users(id) ON DELETE CASCADE,
|
FOREIGN KEY (owner_uid) REFERENCES ttrss_users(id) ON DELETE CASCADE) ENGINE=InnoDB");
|
||||||
content text NOT NULL) ENGINE=InnoDB");
|
|
||||||
|
|
||||||
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_wordfreqs (
|
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_wordfreqs (
|
||||||
word varchar(100) NOT NULL DEFAULT '',
|
word varchar(100) NOT NULL DEFAULT '',
|
||||||
@@ -178,8 +177,7 @@ class Af_Sort_Bayes extends Plugin {
|
|||||||
id SERIAL NOT NULL PRIMARY KEY,
|
id SERIAL NOT NULL PRIMARY KEY,
|
||||||
document_id VARCHAR(255) NOT NULL,
|
document_id VARCHAR(255) NOT NULL,
|
||||||
category_id INTEGER NOT NULL REFERENCES ${prefix}_categories(id) ON DELETE CASCADE,
|
category_id INTEGER NOT NULL REFERENCES ${prefix}_categories(id) ON DELETE CASCADE,
|
||||||
owner_uid INTEGER NOT NULL REFERENCES ttrss_users(id) ON DELETE CASCADE,
|
owner_uid INTEGER NOT NULL REFERENCES ttrss_users(id) ON DELETE CASCADE)");
|
||||||
content text NOT NULL)");
|
|
||||||
|
|
||||||
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_wordfreqs (
|
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_wordfreqs (
|
||||||
word varchar(100) NOT NULL DEFAULT '',
|
word varchar(100) NOT NULL DEFAULT '',
|
||||||
|
|||||||
Reference in New Issue
Block a user