# Can't rebuild container, "null value in column "score" violates not-null constraint"

**URL:** <https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883>\
**Category:** Self-hosting\
**Created:** [29.Март.2019 01:48:17 UTC](https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883 "2019-03-29T01:48:17Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [01.Апрель.2019 15:56:44 UTC](https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883/8 "2019-04-01T15:56:44Z")

</div>

I took a look at this and confirmed that the migrations do create reviewable scores for every flag. However, it’ll only do this is a `PostAction` record exists. There might be some case where those were not present in Discourse. Maybe there were migrations, or an old bug, or something or other.

I think @j.jaffeux’s fix is good and we haven’t seen it since so I can consider this complete.

---

_[View the full topic](https://meta.discourse.org/t/cant-rebuild-container-null-value-in-column-score-violates-not-null-constraint/112883)._
