xbmc/xbmc — pull request #505 by Memphiz (2011-10-22 13:12:29+00:00)
Title: Fix creation of db views on migration from custom named db to versioned db names

This PR should be reviewed and taken into account by firnsy (and might be closed unmerged if firnsy fixes it in another one).

@firnsy
I know you are still working on this but i just want to be sure that with whatever changes you'll make the views get created.

In the special case where the DB update copys a custom named mysql db (e.x. xbmc_video) to the new name scheme MyVideos56 the views wheren't created because the UpdateVersion function didn't do anything (because the version wasn't bumped, but stayed on 56).

This PR fixes it by creating the views in Database::UpdateVersion whenever the versions are equal (UpdateVersion only gets called with equal version in the above use case).