summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/ULists.pm
AgeCommit message (Collapse)AuthorFilesLines
2011-01-07Don't update the 'date' when changing a VN voteYorhel1-1/+1
Reverted back to the old behaviour.
2011-01-03Bugfix: Secondary order by title or username on vote listingsYorhel1-1/+1
2010-12-23Converted the show_list pref. to users_prefs and inverted the valueYorhel1-1/+1
In the users_prefs table, the default value should evaluate to 'false' in Perl, so show_list had to be inverted to hide_list.
2010-12-21Added vnlists.status filter to /u+/listYorhel1-0/+1
Can only filter on one option. If there are more things to filter on it would make sense to use the filter selector, but for now this will do.
2010-12-21Added notes field to the user VN listYorhel1-7/+10
The interface to set this could be more dynamic, since it'll be a lot of work to set different notes for each VN. But oh well, let's first see how many people will use this feature.
2010-12-20Update the votes.date column when changing a voteYorhel1-1/+1
2010-12-20Added ability to batch-edit votes to /u+/votesYorhel1-3/+5
2010-12-19ULists::votelist: Added first character selectionYorhel1-0/+6
2010-12-19RFC-01: Code/DB cleanup and renamed some stuff for consistencyYorhel1-4/+4
2010-12-19RFC-01: Updated and improved /u+/listYorhel1-46/+70
I'm sure I broke all vnlist/rlist-related features on the rest of the site since I modified the DB abstractions. But these will all have to be updated/rewritten anyway.
2010-12-10Added vote listings for VNs and users (/[uv]+/votes)Yorhel1-3/+12
2010-03-09DB::ULists: Greatly improved query performance for VN list with 'hide voted'Yorhel1-2/+2
Crawlers would often find such pages, and the query would often take more than a second to finish, in some extreme cases even 10 seconds. This fix converts an intermediate result into an array, forcing the query planner to evaluate the subquery first, resulting in a far more optimal query plan.
2010-02-02SQL: Converted language columns to an ENUM typeYorhel1-1/+1
And changed vn.c_languages to an array type while I was at it. This required some changes in the Perl code, and I found a bug in DBD::Pg while I was at it: https://rt.cpan.org/Ticket/Display.html?id=54224 Luckily, there's an easy workaround for that.
2009-11-28dbWishListGet: Don't order by vr.* columns by defaultYorhel1-1/+1
That table isn't always joined in the query, resulting in a 500 when the order isn't specified or meaningless. (i.e. VN pages)
2009-11-27DB: Abstracted all ORDER BY clauses in the DB abstraction layerYorhel1-10/+20
The ORDER BY was previously specified using an 'order' argument, which would then be directly inserted into the query. The new method is the same as what I used for the public API: two 'sort' and 'reverse' arguments. This should be less error-prone and more readable. This changes quite a lot of code, so I hope I haven't forgotten to update something along the way.
2009-11-14SQL/L10N: Allow NULL for releases_rev.minage and make the values translatableYorhel1-1/+1
2009-08-16Fixed typo in DB::UlistsYorhel1-1/+1
2009-08-12Added global user votes ignore listYorhel1-2/+6
2009-08-08Converted votes.date to timestamptz and use NOW() as defaultYorhel1-3/+3
2009-08-08Converted wlists.added and rlists.added to timestamptzYorhel1-1/+1
I like how the rlists.added column isn't used anywhere in the code, makes the conversion a lot easier. :-)
2009-07-04Implemented support for multilingual releasesYorhel1-3/+18
The 'language' column in releases_rev has been replaced with a releases_lang table. As this is quite a big change, there may still be bugs floating around somewhere.
2008-12-11Selective table join for dbVoteGetYorhel1-6/+22
Only fetch information we actually need.
2008-12-11Basic userpage + recent votes to VN pages + long-object-float bugfixYorhel1-1/+1
These changes are all pretty much related, so couldn't really do that in multiple commits.
2008-12-09VNList status indicator on VN pagesYorhel1-1/+3
2008-12-09Code cleanup: removed leading spaces and combined ↵Yorhel1-0/+264
DB/{Votes,VNList,WishList}.pm into ULists.pm