summaryrefslogtreecommitdiffstats
path: root/schema
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-15 12:29:24 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-15 22:37:45 +0200
commit2284cb3e4a2ef86b1a2a548ed0b4431ace978d87 (patch)
tree64fc20eea94200e6dde3c3feb4f62e5e043606da /schema
parent74c7cf70ffe49d907df13521edd760467d0602b0 (diff)
downloadaur-2284cb3e4a2ef86b1a2a548ed0b4431ace978d87.tar.gz
aur-2284cb3e4a2ef86b1a2a548ed0b4431ace978d87.tar.xz
Store 10 significant digits of the popularity score
Even if we only display two digits after the decimal point, storing more digits internally allows us to order the search results more accurately. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'schema')
-rw-r--r--schema/aur-schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema/aur-schema.sql b/schema/aur-schema.sql
index 9ac5d44d..5a702b2b 100644
--- a/schema/aur-schema.sql
+++ b/schema/aur-schema.sql
@@ -70,7 +70,7 @@ CREATE TABLE PackageBases (
ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
Name VARCHAR(255) NOT NULL,
NumVotes INTEGER UNSIGNED NOT NULL DEFAULT 0,
- Popularity DECIMAL(6,2) UNSIGNED NOT NULL DEFAULT 0,
+ Popularity DECIMAL(10,6) UNSIGNED NOT NULL DEFAULT 0,
OutOfDateTS BIGINT UNSIGNED NULL DEFAULT NULL,
SubmittedTS BIGINT UNSIGNED NOT NULL,
ModifiedTS BIGINT UNSIGNED NOT NULL,