From: Chocobozzz Date: Tue, 28 Jan 2020 10:09:40 +0000 (+0100) Subject: Improve SQL request doc X-Git-Tag: v2.1.0~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ae0bbd23c6f1b2790975328d8eae6a8317c223d;p=oweals%2Fpeertube.git Improve SQL request doc --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a5e29845..c573b12ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ * `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-2.1.js` * **/!\ VERY IMPORTANT /!\\** In the next PeerTube release (v2.2.0), we'll add a unique index on actors usernames to fix some federation bugs. Please check now if you have conflicts using: - * Go inside your database using `psql` and run `select "preferredUsername" from actor where "serverId" is null group by "preferredUsername" having count(*) > 1` + * Go inside your database using `sudo -u postgres psql peertube_prod` and run `select "preferredUsername" from actor where "serverId" is null group by "preferredUsername" having count(*) > 1;` * If you have some results, it seems you have duplicate channels/accounts. For every entry, you'll have to change the preferredUsername of the entry you want (so they are unique). The updated actors could have some federations issues