# Plugin Database Migrations

**URL:** <https://meta.discourse.org/t/plugin-database-migrations/259521>\
**Category:** Development\
**Created:** [March 27, 2023, 8:50am UTC](https://meta.discourse.org/t/plugin-database-migrations/259521 "2023-03-27T08:50:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bstgmr02](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bstgmr02](https://meta.discourse.org/u/bstgmr02)\
**Post date:** [March 27, 2023, 8:50am UTC](https://meta.discourse.org/t/plugin-database-migrations/259521/1 "2023-03-27T08:50:37Z")

</div>

Is there an automatic way of running the database migration for a custom plugin if it has not already been run? Instead of manually running a DB migration in a fresh Discourse installation?

---

_[View the full topic](https://meta.discourse.org/t/plugin-database-migrations/259521)._
