New database update system that uses the database structure defined in dbstructure.php
This commit is contained in:
4
boot.php
4
boot.php
@@ -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)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user