New database update system that uses the database structure defined in dbstructure.php
This commit is contained in:
parent
e729d2e216
commit
0c77cee667
4 changed files with 380 additions and 328 deletions
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)) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue