# Discourse restore fails with relation already exists error

**URL:** https://meta.discourse.org/t/discourse-restore-fails-with-relation-already-exists-error/401845
**Category:** Support
**Tags:** backups
**Created:** [April 29, 2026, 7:26pm UTC](https://meta.discourse.org/t/discourse-restore-fails-with-relation-already-exists-error/401845 "2026-04-29T19:26:42Z")
**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: [April 29, 2026, 7:34pm UTC](https://meta.discourse.org/t/discourse-restore-fails-with-relation-already-exists-error/401845/2 "2026-04-29T19:34:24Z")

</div>

This has happened with some other plugins. Somehow there’s a migration that created the table but the migration system doesn’t recognize that it ran.

I don’t know how to do it well enough to explain it to anyone. In broad strokes, You’d stop the restore before it migrates (there’s a switch for the restore command to do that) and drop the table, I think. If that makes sense, or almost makes sense you might be able to figure it out with help from [https://ask.discourse.com/](https://ask.discourse.com/)

If that doesn’t help and you’re in a hurry and have a budget, you can ask in #Marketplace or email me. If you’re not in a hurry, or don’t have a budget, there’s a chance that someone can explain what to do in a way that you’d understand.

---

_[View the full topic](https://meta.discourse.org/t/discourse-restore-fails-with-relation-already-exists-error/401845)._
