# How to troubleshoot database errors in an outdated plugin?

**URL:** https://meta.discourse.org/t/how-to-troubleshoot-database-errors-in-an-outdated-plugin/297339
**Category:** Development
**Created:** [February 29, 2024, 10:08pm UTC](https://meta.discourse.org/t/how-to-troubleshoot-database-errors-in-an-outdated-plugin/297339 "2024-02-29T22:08:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [February 29, 2024, 10:10pm UTC](https://meta.discourse.org/t/how-to-troubleshoot-database-errors-in-an-outdated-plugin/297339/2 "2024-02-29T22:10:21Z")

</div>

> [@zibetnu](#):
>
> `PG::UndefinedTable: ERROR: relation "quizzes" does not exist`

Looks like you haven’t run migrations

You need an extra environment variable to run them for plugins, see:

> [@Error when running plugin specs](https://meta.discourse.org/t/error-when-running-plugin-specs/274701/2):
>
> Looking at the test database, the chat migrations appear not to have run. \> psql discourse\_test # \d Oh …! I forgot to add the first environment variable to include plugins with this db migration (because chat is still a plugin): LOAD\_PLUGINS=1 RAILS\_ENV=test rake db:migrate

---

_[View the full topic](https://meta.discourse.org/t/how-to-troubleshoot-database-errors-in-an-outdated-plugin/297339)._
