mirror of
https://gitlab.com/commento/commento.git
synced 2025-04-28 06:30:28 -04:00
11 lines
223 B
SQL
11 lines
223 B
SQL
-- 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';
|