From a156d59e2a1c5ca26337a156035d55e40a712e52 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 27 Aug 2016 19:50:19 +0200 Subject: [PATCH 1/2] dbstructure: Set the version when updating manually --- include/dbstructure.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dbstructure.php b/include/dbstructure.php index bd35d0974..54f16a91d 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()); From e46dae39379eb2dc78028cdc70535ccc6a6cb07c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 27 Aug 2016 19:53:09 +0200 Subject: [PATCH 2/2] Removed some accidentally written code --- include/dbstructure.php | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dbstructure.php b/include/dbstructure.php index 54f16a91d..0236f5778 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -1071,7 +1071,6 @@ function db_definition() { "indexes" => array( "PRIMARY" => array("id"), "uid" => array("uid"), - "uid_profile" => array("uid", "profile"), "resource-id" => array("resource-id"), "guid" => array("guid"), )