Remove group_member.uid

- Use contact.uid alternatively
- Use JOIN with group table
This commit is contained in:
Hypolite Petovan 2017-12-14 22:47:58 -05:00
parent afbfbde112
commit 179b311978
6 changed files with 8 additions and 11 deletions

View file

@ -990,7 +990,6 @@ class DBStructure {
$database["group_member"] = array(
"fields" => array(
"id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
"uid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("user" => "uid")),
"gid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("group" => "id")),
"contact-id" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("contact" => "id")),
),
@ -998,7 +997,6 @@ class DBStructure {
"PRIMARY" => array("id"),
"contactid" => array("contact-id"),
"gid_contactid" => array("gid", "contact-id"),
"uid_gid_contactid" => array("UNIQUE", "uid", "gid", "contact-id"),
)
);
$database["gserver"] = array(