# Database restoration question - how does database/program versioning figure in?

**URL:** <https://forums.plex.tv/t/database-restoration-question-how-does-database-program-versioning-figure-in/219733>\
**Category:** General Discussions\
**Created:** [December 31, 2017, 6:53pm UTC](https://forums.plex.tv/t/database-restoration-question-how-does-database-program-versioning-figure-in/219733 "2017-12-31T18:53:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reed97123](https://avatars.discourse-cdn.com/v4/letter/r/74df32/32.png) [@Reed97123](https://forums.plex.tv/u/Reed97123)\
**Post date:** [December 31, 2017, 6:53pm UTC](https://forums.plex.tv/t/database-restoration-question-how-does-database-program-versioning-figure-in/219733/1 "2017-12-31T18:53:55Z")

</div>

When things go wrong with the database, often the suggested solution is to rename the current database and substitute in one of the backup databases.

However, the structure (schema) of the database changes over time. How does Plex handle having an old database being restored into the current version?

Can Plex automatically update from any old schema format to the current format?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [December 31, 2017, 6:56pm UTC](https://forums.plex.tv/t/database-restoration-question-how-does-database-program-versioning-figure-in/219733/2 "2017-12-31T18:56:27Z")

</div>

> @Reed97123 said:  
> Can Plex automatically update from any old schema format to the current format?

Yes.  
You can see this in action if you inspect the `Plex Media Server.log` right after an updated software version was started for the first time.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 12:22am UTC](https://forums.plex.tv/t/database-restoration-question-how-does-database-program-versioning-figure-in/219733/3 "2020-01-08T00:22:37Z")

</div>


