summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-17 19:42:41 +0300
committerAndrew Dolgov <[email protected]>2015-06-17 19:42:41 +0300
commitd62a5e0cb267a05ebf8c5a645fe49a4a574c80b0 (patch)
tree432f401996455a44bc8aa0afc43a0108ec53c109
parent4da0cb323f8b8450185a9cde9861bb01448935bd (diff)
bayes: fix psql schema typo
-rw-r--r--plugins/af_sort_bayes/init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_sort_bayes/init.php b/plugins/af_sort_bayes/init.php
index e2c81d636..bf8a1e593 100644
--- a/plugins/af_sort_bayes/init.php
+++ b/plugins/af_sort_bayes/init.php
@@ -170,7 +170,7 @@ class Af_Sort_Bayes extends Plugin {
$this->dbh->query("CREATE TABLE IF NOT EXISTS ${prefix}_categories (
id SERIAL NOT NULL PRIMARY KEY,
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,
word_count BIGINT NOT NULL DEFAULT '0')");