# בעיות במסד הנתונים בעת העברת גרסה ישנה 20150822141540

**URL:** <https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413>\
**Category:** Self-hosting\
**Created:** [19 בספטמבר,‏ 2022,‏ 2:23pm UTC](https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413 "2022-09-19T14:23:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Marcelloc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcelloc/32/240835_2.png) [@Marcelloc](https://meta.discourse.org/u/Marcelloc)\
**Post date:** [19 בספטמבר,‏ 2022,‏ 2:23pm UTC](https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413/1 "2022-09-19T14:23:15Z")

</div>

While trying to restore/rebuild discouse It always end with database migration error  
current version:20220818171849  
restored version:20150822141540  
.  
.  
.

```plaintext
relation "digest_unsubscribe_keys_pkey" already exists in schema "public" (PG::DuplicateTable)
CONTEXT: SQL statement "ALTER TABLE backup.unsubscribe_keys SET SCHEMA public;"
PL/pgSQL function inline_code_block line 11 at EXECUTE

```

I’ve also tried to rename/delete this database during migrate process but it failed to.

Is there a way to update this old version to current discourse version?

---

_[View the full topic](https://meta.discourse.org/t/database-issues-migrating-form-old-version-20150822141540/239413)._
