1
0
Fork 0

New database update system that uses the database structure defined in dbstructure.php

This commit is contained in:
Michael Vogel 2014-06-04 00:44:58 +02:00
commit 0c77cee667
4 changed files with 380 additions and 328 deletions

View file

@ -1000,6 +1000,10 @@ if(! function_exists('update_db')) {
if(DB_UPDATE_VERSION == UPDATE_VERSION) {
// Compare the current structure with the defined structure
require_once("include/dbstructure.php");
update_structure(false, true);
for($x = $stored; $x < $current; $x ++) {
if(function_exists('update_' . $x)) {