properly reverse items
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
-- videobox."saved_movie" definition
|
||||
|
||||
selectByUserId:
|
||||
SELECT * FROM "saved_movie" WHERE user_id = ? ORDER BY saved_movie_id;
|
||||
|
||||
selectByUserIdAndMovieId:
|
||||
SELECT * FROM "saved_movie" WHERE user_id = ? AND movie_id = ?;
|
||||
|
||||
@@ -22,4 +19,4 @@ SELECT
|
||||
FROM saved_movie AS sm
|
||||
JOIN movie AS m ON sm.movie_id = m.movie_id
|
||||
WHERE sm.user_id = ?
|
||||
ORDER BY sm.saved_movie_id DESC;
|
||||
ORDER BY sm.saved_movie_id ASC;
|
||||
|
||||
Reference in New Issue
Block a user