# La migration de base de données échoue dans la version "stable"

**URL:** https://meta.discourse.org/t/database-migrate-fails-in-stable-version/243979
**Category:** Self-hosting
**Tags:** gamification
**Created:** [Novembre 2, 2022, 12:13 UTC](https://meta.discourse.org/t/database-migrate-fails-in-stable-version/243979 "2022-11-02T12:13:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![gmoirod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gmoirod/32/263768_2.png) [@gmoirod](https://meta.discourse.org/u/gmoirod)
#### Post date: [Novembre 2, 2022, 12:40 UTC](https://meta.discourse.org/t/database-migrate-fails-in-stable-version/243979/2 "2022-11-02T12:40:20Z")

</div>

Le problème vient de ce commit :

> <https://github.com/discourse/discourse-gamification/commit/d6c5db58f7bb3d683d55602d0cc84e10d2ab214a>
>
> The new setting is default\_period, which is "All Time" by default.

Épingler au commit précédent immédiat a résolu le problème.  
Si quelqu’un souhaite la solution de contournement, définissez votre plugin comme suit dans la section `hooks` de votre fichier de configuration `yaml` Discourse :

```plaintext
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/discourse-gamification && cd discourse-gamification && git checkout 6a399b4c220f31de62049504d27ff6e50611fbef

```

---

_[View the full topic](https://meta.discourse.org/t/database-migrate-fails-in-stable-version/243979)._
