]> git.mxchange.org Git - friendica.git/commitdiff
Avoid foreign key problem
authorMichael <heluecht@pirati.ca>
Wed, 18 Nov 2020 00:24:38 +0000 (00:24 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 18 Nov 2020 00:24:38 +0000 (00:24 +0000)
database.sql
static/dbstructure.config.php

index 054284657267fbf2128ed4b51aa1bc02994779d9..a4f6aa636c3e3bc36f91c9101640922fd98f2202 100644 (file)
@@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `gserver` (
 --
 CREATE TABLE IF NOT EXISTS `user` (
        `uid` mediumint unsigned NOT NULL auto_increment COMMENT 'sequential ID',
-       `parent-uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'The parent user that has full control about this user',
+       `parent-uid` mediumint unsigned NOT NULL COMMENT 'The parent user that has full control about this user',
        `guid` varchar(64) NOT NULL DEFAULT '' COMMENT 'A unique identifier for this user',
        `username` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name that this user is known by',
        `password` varchar(255) NOT NULL DEFAULT '' COMMENT 'encrypted password',
index cabb48c58f2c61bba8aeefaa26bdcb222e8121bb..e7262224592f21a724723bd3ff3e5bda6c04aa8c 100644 (file)
@@ -94,7 +94,7 @@ return [
                "comment" => "The local users",
                "fields" => [
                        "uid" => ["type" => "mediumint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
-                       "parent-uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"],
+                       "parent-uid" => ["type" => "mediumint unsigned", "not null" => "1", "foreign" => ["user" => "uid"],
                                "comment" => "The parent user that has full control about this user"],
                        "guid" => ["type" => "varchar(64)", "not null" => "1", "default" => "", "comment" => "A unique identifier for this user"],
                        "username" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Name that this user is known by"],