Browse Source

Collate synthetic subscription title column; fixes #127

microsub
J. King 6 years ago
parent
commit
44ae0ba29b
  1. 7
      UPGRADING
  2. 2
      lib/Database.php

7
UPGRADING

@ -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
- 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
=============================

2
lib/Database.php

@ -536,7 +536,7 @@ class Database {
join arsse_feeds on feed = arsse_feeds.id
left join topmost on folder=f_id"
);
$q->setOrder("pinned desc, title");
$q->setOrder("pinned desc, title collate nocase");
// 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
// topmost folders belonging to the user

Loading…
Cancel
Save