浏览代码

Move the software table into core/upgrade/app_config.php

Mark Crane 11 年之前
父节点
当前提交
705c435018
共有 1 个文件被更改,包括 32 次插入0 次删除
  1. 32 0
      core/upgrade/app_config.php

+ 32 - 0
core/upgrade/app_config.php

@@ -42,6 +42,38 @@
 		$apps[$x]['permissions'][1]['name'] = "upgrade_svn";
 		$apps[$x]['permissions'][1]['name'] = "upgrade_svn";
 
 
 	//schema details
 	//schema details
+		$y = 0; //table array index
+		$z = 0; //field array index
+		$apps[$x]['db'][$y]['table'] = "v_software";
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
+		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
+		$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']['text'] = "software_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";
+		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+		$z++;
+		$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "software_name";
+		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "softwarename";
+		$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'] = "software_url";
+		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "softwareurl";
+		$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'] = "software_version";
+		$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "softwareversion";
+		$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
+		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
+
 		/*
 		/*
 		$y = 0; //table array index
 		$y = 0; //table array index
 		$z = 0; //field array index
 		$z = 0; //field array index