# Updating Likes in \`user\_stats\` in the database via SQL

**URL:** <https://meta.discourse.org/t/updating-likes-in-user-stats-in-the-database-via-sql/135283>\
**Category:** Self-hosting\
**Created:** [4 בדצמבר,‏ 2019,‏ 12:35pm UTC](https://meta.discourse.org/t/updating-likes-in-user-stats-in-the-database-via-sql/135283 "2019-12-04T12:35:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [4 בדצמבר,‏ 2019,‏ 1:19pm UTC](https://meta.discourse.org/t/updating-likes-in-user-stats-in-the-database-via-sql/135283/2 "2019-12-04T13:19:46Z")

</div>

You’ll need to do it in rails or a plugin. [Data explorer](https://meta.discourse.org/t/32566?silent=true) can’t change data.

You’ll need to have a look at the code in the user or user stats models.

---

_[View the full topic](https://meta.discourse.org/t/updating-likes-in-user-stats-in-the-database-via-sql/135283)._
