You will have to have as part of your installation a file containing the "database version" or, you could check for a specific number of database fields, there are many ways to do it, but it won't happen automatically, you will have to write code to do it.