]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
New database update system that uses the database structure defined in dbstructure.php
[friendica.git] / boot.php
index 53d1c18ba16b6f3631d9b65f5b3da543d1832613..dbd5c7640e3f6dc50c52cc9596f53c9772f7bc78 100644 (file)
--- a/boot.php
+++ b/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)) {