diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-15 12:29:24 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-15 22:37:45 +0200 |
commit | 2284cb3e4a2ef86b1a2a548ed0b4431ace978d87 (patch) | |
tree | 64fc20eea94200e6dde3c3feb4f62e5e043606da /schema | |
parent | 74c7cf70ffe49d907df13521edd760467d0602b0 (diff) |
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.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/schema/aur-schema.sql b/schema/aur-schema.sql index 9ac5d44..5a702b2 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, |