ZXDB version number

This is the place for general discussion and updates about the ZXDB Database. This forum is not specific to Spectrum Computing.

Moderator: druellan

Post Reply
User avatar
SkoolKid
Manic Miner
Posts: 407
Joined: Wed Nov 15, 2017 3:07 pm

ZXDB version number

Post by SkoolKid »

Is there a way to get the ZXDB version number from an instance of the database? I don't see a version table anywhere, but perhaps the version number is located somewhere else?
SkoolKit - disassemble a game today
Pyskool - a remake of Skool Daze and Back to Skool
User avatar
Einar Saukas
Bugaboo
Posts: 3145
Joined: Wed Nov 15, 2017 2:48 pm

Re: ZXDB version number

Post by Einar Saukas »

SkoolKid wrote: Fri Oct 06, 2023 10:45 pm Is there a way to get the ZXDB version number from an instance of the database? I don't see a version table anywhere, but perhaps the version number is located somewhere else?
The version number is visible in the ZXDB homepage (current version is 1.0.174) but it's not stored within the files you download.

However there's an easy way to find out the version you have. Compare the date of your file "ZXDB_mysql.sql" with the release dates listed here:

https://github.com/zxdb/ZXDB/commits/master
User avatar
SkoolKid
Manic Miner
Posts: 407
Joined: Wed Nov 15, 2017 3:07 pm

Re: ZXDB version number

Post by SkoolKid »

Einar Saukas wrote: Fri Oct 06, 2023 10:56 pm The version number is visible in the ZXDB homepage (current version is 1.0.174) but it's not stored within the files you download.
OK. It would just be nice to be able to do "SELECT version FROM version" (say) in a script that connects to an instance of the database, and therefore be certain what version it's using.

Could you add a single-row version table, or would that be too much of a pain to maintain?
SkoolKit - disassemble a game today
Pyskool - a remake of Skool Daze and Back to Skool
Post Reply