# 如何重置排行榜插件的页面计数器？

**URL:** <https://meta.discourse.org/t/how-i-can-reset-page-counter-of-the-leaderboard-plugin/230123>\
**Category:** Product Support\
**Created:** [2022 年6 月 15 日 21:56 UTC](https://meta.discourse.org/t/how-i-can-reset-page-counter-of-the-leaderboard-plugin/230123 "2022-06-15T21:56:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![Bitweb\_Core](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitweb_core/32/263343_2.png) [@Bitweb\_Core](https://meta.discourse.org/u/Bitweb_Core)\
发布日期： [2022 年6 月 15 日 22:50 UTC](https://meta.discourse.org/t/how-i-can-reset-page-counter-of-the-leaderboard-plugin/230123/6 "2022-06-15T22:50:43Z")

</div>

```plaintext
./launcher enter app
```

```plaintext
sudo -u postgres psql discourse
```

用于列出所有

```plaintext
SELECT * FROM information_schema.sequences;
```

```plaintext
ALTER SEQUENCE gamification_leaderboards_id_seq RESTART WITH 1;
```

```plaintext
ALTER SEQUENCE gamification_scores_id_seq RESTART WITH 1;
```

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/f/4/0f46a6455460b867bcf4a8f4b7a7449e4ddfaaa3.png)

---

_[View the full topic](https://meta.discourse.org/t/how-i-can-reset-page-counter-of-the-leaderboard-plugin/230123)._
