]> git.mxchange.org Git - friendica.git/commitdiff
dbstructure: Set the version when updating manually
authorMichael Vogel <icarus@dabo.de>
Sat, 27 Aug 2016 17:50:19 +0000 (19:50 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 27 Aug 2016 17:50:19 +0000 (19:50 +0200)
include/dbstructure.php

index bd35d0974ad51ced4386e9d2bda118a84d982402..54f16a91d413fbae58907ba163ce6cb1dcdd60c2 100644 (file)
@@ -1071,6 +1071,7 @@ function db_definition() {
                        "indexes" => array(
                                        "PRIMARY" => array("id"),
                                        "uid" => array("uid"),
+                                       "uid_profile" => array("uid", "profile"),
                                        "resource-id" => array("resource-id"),
                                        "guid" => array("guid"),
                                        )
@@ -1453,6 +1454,7 @@ function dbstructure_run(&$argv, &$argc) {
                switch ($argv[1]) {
                        case "update":
                                update_structure(true, true);
+                               set_config('system','build',DB_UPDATE_VERSION);
                                return;
                        case "dumpsql":
                                print_structure(db_definition());