Posts: 291
Joined: Jul 2010
Reputation:
0
Where can one look to find out what database version is used by the various nightly builds?
Why? I have three instances of XBMC running on three different platforms with a shared media database. If I move to the latest nightly build on my ATV1, am I also going to have to move to the latest nightly on my ATV2 in order to maintain database harmony?
Posts: 157
Joined: Nov 2009
Reputation:
0
Jaken
Senior Member
Posts: 157
I suppose you use mysql? If not, the db versions dosen't matter all libraries will be uniqe.
For my MySQL soulution I try to update all my xbmc instances to simmilar build dates. This mostly works.
Posts: 291
Joined: Jul 2010
Reputation:
0
^Thanks.
Yes, I use a shared MySQL database. I got burned once before by differing database versions and ended up having to start over from square one. I want to avoid that.
I was hoping that there would be an easy way to determine if the database version of the latest nightly build for Mac/ATV1 was the same as the build I'm running on my AppleTV 2, which is several months old. (Upgrading the Mac version on an ATV1 is a GUI snap. Upgrading the ATV2 involves some tedious command line work.)
Posts: 13
Joined: Feb 2011
Reputation:
0
I imagine there must be an easier way, but if you look at the VideoDatabase.cpp file on github, there is a method that performs an update of the databases. look for the last if (iVersion < 55) type line and that'll give you a clue as to what database version the latest nightly uses. You'd want all your xbmc clients to use the same databse version I'd imagine
Posts: 157
Joined: Nov 2009
Reputation:
0
Jaken
Senior Member
Posts: 157
Once Eden is out. Just update all machines to Eden and your worries will be gone. I know its hard to stay on stable when all goodies are merged in after a release. But really its the best way to avoid db version issues.
Posts: 31,445
Joined: Jan 2011
New nightlies copy the MySQL DB and upgrade the copy. Your original MySQL DBs will always be safe if the update fails.
Posts: 13
Joined: Feb 2011
Reputation:
0
If you change your advancedsettings.xml file and take out the MySQL part of it, you'll force your old XBMC versions to build a local SQLlite db called myvideosXY, where XY is the databse version.
Not sure how this knowledge will be much use to you, as even knowing the version the old xbmc uses, you'll still need to study videodatabase.cpp to see what changes it implements to bring the database up to date and see whether these changes would likely cause you issues or possible corruption when running an old xbmc.