2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
//application details
|
|
|
|
|
$apps[$x]['name'] = "Upgrade Schema";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['uuid'] = "8b1d7eb5-1009-052c-e1a8-d1f4887a3f5c";
|
|
|
|
|
$apps[$x]['category'] = "Core";
|
|
|
|
|
$apps[$x]['subcategory'] = "";
|
|
|
|
|
$apps[$x]['version'] = "";
|
|
|
|
|
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
|
|
|
|
$apps[$x]['description']['en-us'] = "Upgrade the database schema.";
|
2014-02-13 19:09:45 +01:00
|
|
|
$apps[$x]['description']['es-cl'] = "Actualiza el esquema de la base de datos";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['description']['de-de'] = "";
|
|
|
|
|
$apps[$x]['description']['de-ch'] = "";
|
|
|
|
|
$apps[$x]['description']['de-at'] = "";
|
2013-09-30 18:16:32 +02:00
|
|
|
$apps[$x]['description']['fr-fr'] = "Mise à jour du Schéma de la base de données";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['description']['fr-ca'] = "";
|
|
|
|
|
$apps[$x]['description']['fr-ch'] = "";
|
2014-02-25 23:49:35 +01:00
|
|
|
$apps[$x]['description']['pt-pt'] = "Atualizar o esquema da base de dados.";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['description']['pt-br'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//menu details
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['en-us'] = "Upgrade Schema";
|
2014-02-13 19:09:45 +01:00
|
|
|
$apps[$x]['menu'][0]['title']['es-cl'] = "Actualizar Esquema";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['de-de'] = "";
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de-ch'] = "";
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de-at'] = "";
|
2013-09-30 18:16:32 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['fr-fr'] = "MàJ BDD";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['fr-ca'] = "";
|
|
|
|
|
$apps[$x]['menu'][0]['title']['fr-ch'] = "";
|
2013-09-30 18:16:32 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['pt-pt'] = "Actualizar BD";
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['pt-br'] = "";
|
|
|
|
|
$apps[$x]['menu'][0]['uuid'] = "8c826e92-be3c-0944-669a-24e5b915d562";
|
|
|
|
|
$apps[$x]['menu'][0]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
|
|
|
|
$apps[$x]['menu'][0]['category'] = "internal";
|
|
|
|
|
$apps[$x]['menu'][0]['path'] = "/core/upgrade/upgrade_schema.php";
|
|
|
|
|
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//permission details
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['permissions'][0]['name'] = "upgrade_schema";
|
|
|
|
|
$apps[$x]['permissions'][0]['menu']['uuid'] = "8c826e92-be3c-0944-669a-24e5b915d562";
|
|
|
|
|
$apps[$x]['permissions'][0]['groups'][] = "superadmin";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['permissions'][1]['name'] = "upgrade_svn";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//schema details
|
2014-07-02 23:41:41 +02:00
|
|
|
$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++;
|
2014-07-06 03:22:33 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "software_uuid";
|
2014-07-02 23:41:41 +02:00
|
|
|
$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'] = "";
|
|
|
|
|
|
2014-07-08 08:38:23 +02:00
|
|
|
//schema details
|
|
|
|
|
$y = 1; //table array index
|
|
|
|
|
$z = 0; //field array index
|
|
|
|
|
$apps[$x]['db'][$y]['table'] = "v_emails";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "email_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'] = "call_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'] = "foreign";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_xml_cdr";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "uuid";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_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'] = "foreign";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "sent_date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "timestamp";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "date";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "timestamp";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "type";
|
|
|
|
|
$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'] = "status";
|
|
|
|
|
$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'] = "email";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
/*
|
|
|
|
|
$y = 0; //table array index
|
|
|
|
|
$z = 0; //field array index
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['table'] = "v_src";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "src_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";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "src_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'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_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'] = "foreign";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "type";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "last_mod";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-10-18 00:06:53 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "path";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
2012-06-04 16:58:40 +02:00
|
|
|
*/
|
2014-02-25 23:49:35 +01:00
|
|
|
?>
|