mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
api, frontend, db: add comment sorting
Closes https://gitlab.com/commento/commento/issues/215
This commit is contained in:
10
db/20191204173000-sort-method.sql
Normal file
10
db/20191204173000-sort-method.sql
Normal file
@ -0,0 +1,10 @@
|
||||
-- Default sort policy for each domain
|
||||
|
||||
CREATE TYPE sortPolicy AS ENUM (
|
||||
'score-desc',
|
||||
'creationdate-desc',
|
||||
'creationdate-asc'
|
||||
);
|
||||
|
||||
ALTER TABLE domains
|
||||
ADD defaultSortPolicy sortPolicy NOT NULL DEFAULT 'score-desc';
|
Reference in New Issue
Block a user