Ver código fonte

Add group_uuid to the group users table.

Mark Crane 11 anos atrás
pai
commit
e9a84725db
1 arquivos alterados com 9 adições e 7 exclusões
  1. 9 7
      core/users/app_config.php

+ 9 - 7
core/users/app_config.php

@@ -322,13 +322,15 @@
 		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
-		//$z++;
-		//$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
-		//$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
-		//$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
-		//$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
-		//$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
-		//$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+		$z++;
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
+		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
+		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_groups";
+		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid";
+		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
 		$z++;
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";