]> git.mxchange.org Git - friendica.git/commitdiff
Some useful unique indexes
authorMichael <heluecht@pirati.ca>
Fri, 5 May 2017 21:55:19 +0000 (21:55 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 5 May 2017 21:55:19 +0000 (21:55 +0000)
boot.php
include/dbstructure.php
update.php

index b689b73eece112a87558b304745ff806569ac605..dfb1073b1cd0b0377dfd5199073aecc9298ed04a 100644 (file)
--- 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.
index 06e81e495843b1bb5c7439eead1c4a13ba067f30..8c29eb641526f619d9cc9c330e6f38c004bfedd0 100644 (file)
@@ -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(
index bdb3d68839e9a66b199aa53179245c052b1a0d01..31a3068ea5ff477204da0b0d06d14d8901f4fb72 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1222);
+define('UPDATE_VERSION' , 1223);
 
 /**
  *