]> git.mxchange.org Git - friendica.git/commitdiff
Use an ID as a primary field.
authorMichael Vogel <icarus@dabo.de>
Thu, 23 Jul 2015 06:35:45 +0000 (08:35 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 23 Jul 2015 06:35:45 +0000 (08:35 +0200)
include/dbstructure.php

index c079efeb55b995f821875e83365b3b14540c1bbe..7d6d015a3fe47d8dcb4b6943b2069fd6e415b64f 100644 (file)
@@ -691,6 +691,7 @@ function db_definition() {
                        );
        $database["gserver"] = array(
                        "fields" => array(
+                                       "id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
                                        "url" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
                                        "nurl" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
                                        "version" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
@@ -707,7 +708,8 @@ function db_definition() {
                                        "last_failure" => array("type" => "datetime", "default" => "0000-00-00 00:00:00"),
                                        ),
                        "indexes" => array(
-                                       "PRIMARY" => array("nurl"),
+                                       "PRIMARY" => array("id"),
+                                       "nurl" => array("nurl"),
                                        )
                        );
        $database["guid"] = array(