mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
74c7cf70ff
commit
2284cb3e4a
3 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ CREATE TABLE PackageComaintainers (
|
|||
|
||||
----
|
||||
ALTER TABLE PackageBases
|
||||
ADD COLUMN Popularity DECIMAL(6,2) UNSIGNED NOT NULL DEFAULT 0;
|
||||
ADD COLUMN Popularity DECIMAL(10,6) UNSIGNED NOT NULL DEFAULT 0;
|
||||
----
|
||||
|
||||
6. Drop the category ID foreign key from the PackageBases table:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue