Browse Source

Add the primary key to the schema.

Mark Crane 10 years ago
parent
commit
ad0fce3f17
1 changed files with 7 additions and 2 deletions
  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
 		$y = 1; //table array index
 		$z = 0; //field 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]['name'] = "language";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "The language name/title.";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "The language name/title.";
 		$z++;
 		$z++;
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = "code";
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = "code";
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
 		$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.";
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "The language code.";
 		$z++;
 		$z++;