# Can't restore database because migration in the database was in the (missing) discourse-ai plugin

**URL:** <https://meta.discourse.org/t/cant-restore-database-because-migration-in-the-database-was-in-the-missing-discourse-ai-plugin/300852>\
**Category:** Development\
**Created:** [March 25, 2024, 5:15pm UTC](https://meta.discourse.org/t/cant-restore-database-because-migration-in-the-database-was-in-the-missing-discourse-ai-plugin/300852 "2024-03-25T17:15:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [March 25, 2024, 5:15pm UTC](https://meta.discourse.org/t/cant-restore-database-because-migration-in-the-database-was-in-the-missing-discourse-ai-plugin/300852/1 "2024-03-25T17:15:46Z")

</div>

I’m trying to migrate a database and am getting

```plaintext
unknown OID 446656: failed to recognize type of 'embeddings'. It will be treated as String.

```

`rake db:migrate:status` shows

```plaintext
...
   up 20240304030429 Topic id on incoming email index
   up 20240306063428 Add indexes to notifications
   up 20240307231053 Add topics unread when closed to user options

```

And I can see `\./db/migrate/20240307231053_add_topics_unread_when_closed_to_user_options.rb` in the path, so it seems that the above error is keeping the database from migrating, which is keeping me from restoring a database.

`pgvector` is installed and enabled on the developmetn and test databases, which was my only guess. . .

---

_[View the full topic](https://meta.discourse.org/t/cant-restore-database-because-migration-in-the-database-was-in-the-missing-discourse-ai-plugin/300852)._
