diff --git a/app/system/app_config.php b/app/system/app_config.php index e2fe4fdf2e..d03e6a1a2c 100644 --- a/app/system/app_config.php +++ b/app/system/app_config.php @@ -76,37 +76,4 @@ $apps[$x]['permissions'][$y]['name'] = "software_delete"; //$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; - //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'] = ""; - ?> \ No newline at end of file diff --git a/core/upgrade/app_config.php b/core/upgrade/app_config.php index f5728ead7f..726ce112f4 100644 --- a/core/upgrade/app_config.php +++ b/core/upgrade/app_config.php @@ -42,6 +42,38 @@ $apps[$x]['permissions'][1]['name'] = "upgrade_svn"; //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 $z = 0; //field array index