diff --git a/readme/news/20211102-150403.md b/readme/news/20211102-150403.md index 765140af4..376412b6c 100644 --- a/readme/news/20211102-150403.md +++ b/readme/news/20211102-150403.md @@ -13,9 +13,9 @@ The second database migration will add a unique constraint on items.name and ite If that happens, you'll need to decide what to do with the data, as it's not possible to automatically decide. You can find all duplicates using this query: -<code>**select** count(*), name, owner_id +**select** count(*), name, owner_id **from** items **group** **by** name, owner_id -**having** count(*) > 1;</code> +**having** count(*) > 1; Once you have the list of IDs you have a few options: