From: Michael Vogel Date: Sat, 27 Aug 2016 17:50:19 +0000 (+0200) Subject: dbstructure: Set the version when updating manually X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a156d59e2a1c5ca26337a156035d55e40a712e52;p=friendica.git dbstructure: Set the version when updating manually --- diff --git a/include/dbstructure.php b/include/dbstructure.php index bd35d0974a..54f16a91d4 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -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());