Parcourir la source

Add the primary key to the schema.

Mark Crane il y a 10 ans
Parent
commit
5f93e869ef
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  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++;