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

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?

@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.