1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Collate synthetic subscription title column; fixes #127

This commit is contained in:
J. King 2017-12-07 18:17:16 -05:00
parent 0b3b3cb49c
commit 44ae0ba29b
2 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,13 @@ When upgrading between any two versions of The Arsse, the following are usually
- Check for any changes to sample systemd unit or other init files - Check for any changes to sample systemd unit or other init files
- If installing from source, update dependencies with `composer install -o --no-dev` - If installing from source, update dependencies with `composer install -o --no-dev`
Upgrading from 0.2.0 to 0.2.1
=============================
- The database schema has changed from rev2 to rev3; if upgrading the database manually, apply the 2.sql file
Upgrading from 0.1.x to 0.2.0 Upgrading from 0.1.x to 0.2.0
============================= =============================

View file

@ -536,7 +536,7 @@ class Database {
join arsse_feeds on feed = arsse_feeds.id join arsse_feeds on feed = arsse_feeds.id
left join topmost on folder=f_id" left join topmost on folder=f_id"
); );
$q->setOrder("pinned desc, title"); $q->setOrder("pinned desc, title collate nocase");
// define common table expressions // define common table expressions
$q->setCTE("user(user)", "SELECT ?", "str", $user); // the subject user; this way we only have to pass it to prepare() once $q->setCTE("user(user)", "SELECT ?", "str", $user); // the subject user; this way we only have to pass it to prepare() once
// topmost folders belonging to the user // topmost folders belonging to the user