From 6a594ca8a96568a2fb9376de3322cdca73802b29 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 5 May 2017 21:55:19 +0000 Subject: [PATCH] Some useful unique indexes --- boot.php | 2 +- include/dbstructure.php | 6 +++--- update.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boot.php b/boot.php index b689b73eec..dfb1073b1c 100644 --- a/boot.php +++ b/boot.php @@ -38,7 +38,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Asparagus'); define ( 'FRIENDICA_VERSION', '3.5.2-dev' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1222 ); +define ( 'DB_UPDATE_VERSION', 1223 ); /** * @brief Constant with a HTML line break. diff --git a/include/dbstructure.php b/include/dbstructure.php index 06e81e4958..8c29eb6415 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -878,7 +878,7 @@ function db_definition() { "indexes" => array( "PRIMARY" => array("id"), "addr" => array("addr(32)"), - "url" => array("url"), + "url" => array("UNIQUE", "url(190)"), ) ); $database["ffinder"] = array( @@ -963,7 +963,7 @@ function db_definition() { ), "indexes" => array( "PRIMARY" => array("id"), - "nurl" => array("nurl(64)"), + "nurl" => array("UNIQUE", "nurl(190)"), "name" => array("name(64)"), "nick" => array("nick(32)"), "addr" => array("addr(64)"), @@ -1033,7 +1033,7 @@ function db_definition() { ), "indexes" => array( "PRIMARY" => array("id"), - "nurl" => array("nurl(32)"), + "nurl" => array("UNIQUE", "nurl(190)"), ) ); $database["hook"] = array( diff --git a/update.php b/update.php index bdb3d68839..31a3068ea5 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@