瀏覽代碼

Add the primary key to the schema.

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

+ 7 - 2
core/default_settings/app_config.php

@@ -75,14 +75,19 @@
 
 		$y = 1; //table array index
 		$z = 0; //field array index
-		$apps[$x]['db'][$y]['table'] = "v_translate_languages";
+		$apps[$x]['db'][$y]['table'] = "v_languages";
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = "languages_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'] = "primary";
+		$z++;
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = "language";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "The language name/title.";
 		$z++;
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = "code";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
-		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "The language code.";
 		$z++;