瀏覽代碼

Add the api key to app_config.php

Mark Crane 12 年之前
父節點
當前提交
4fb551f7ea
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      core/users/app_config.php

+ 10 - 4
core/users/app_config.php

@@ -163,16 +163,22 @@
 		$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'] = 'user_enabled';
-		$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']['text'] = 'user_time_zone';
 		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'usertimezone';
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
 		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
 		$z++;
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'api_key';
+		$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]['description']['en-us'] = '';
+		$z++;
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'user_enabled';
+		$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']['text'] = 'add_user';
 		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'][] = 'user_add_user';
 		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'][] = 'useradduser';