Before restructuring requests

This commit is contained in:
Duncan X Simpson 2020-07-01 23:06:14 -07:00
parent d89f985d34
commit fcf4f092e8
3 changed files with 61 additions and 2 deletions

View file

@ -1,2 +1,5 @@
CREATE VIEW requests_vw AS
SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC;
SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC, id DESC;
CREATE VIEW requests_all_vw AS
SELECT * FROM requests ORDER BY id DESC;