WoltLab/WCF — pull request #687 by Gravatronics (2012-07-14 14:56:01+00:00)
Title: Adds automatic calculation of the database number

Two notes:

1. This is just tested for the MySQL database, please test it with a PostgreSQL database (have non at hand).
2. Currently, only the `wcf%_package_installation_sql_log` table is checked and the highest number (+1) is taken. Theoretically, for some reason, there might be a manipulated (broken) installation with a higher installation number which lacks this table. Is this something that should be considered?