- Change Db Code page

This commit is contained in:
PhantomVl 2019-04-08 16:46:18 +03:00 committed by Diederik de Groot
parent e40adbaf00
commit 23aad30d89
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6
2 changed files with 11 additions and 4 deletions

View file

@ -330,6 +330,8 @@ $sccp_compatible = 0;
$db_config = ''; $db_config = '';
function CheckSCCPManagerDBTables($table_req) { function CheckSCCPManagerDBTables($table_req) {
global $amp_conf;
global $astman;
global $db; global $db;
outn("<li>" . _("Checking for Sccp_manager database tables..") . "</li>"); outn("<li>" . _("Checking for Sccp_manager database tables..") . "</li>");
foreach ($table_req as $value) { foreach ($table_req as $value) {
@ -548,7 +550,12 @@ function InstallDB_updateSchema($db_config) {
if (!empty($tab_modify[$fld_id]['rename'])) { if (!empty($tab_modify[$fld_id]['rename'])) {
$fld_id_source = $tab_modify[$fld_id]['rename']; $fld_id_source = $tab_modify[$fld_id]['rename'];
$db_config[$tabl_name][$fld_id_source]['status'] = 'yes'; $db_config[$tabl_name][$fld_id_source]['status'] = 'yes';
if (!empty($db_config[$tabl_name][$fld_id_source]['create'])) {
$db_config[$tabl_name][$fld_id]['create'] = $db_config[$tabl_name][$fld_id_source]['create']; $db_config[$tabl_name][$fld_id]['create'] = $db_config[$tabl_name][$fld_id_source]['create'];
} else {
$db_config[$tabl_name][$fld_id]['create'] = strtoupper($tabl_data[1]).(($tabl_data[2] == 'NO') ?' NOT NULL': ' NULL');
$db_config[$tabl_name][$fld_id]['create'] .= ' DEFAULT '. ((empty($tabl_data[4]))?'NULL': "'". $tabl_data[4]."'" );
}
} }
} }
} }

View file

@ -1,7 +1,7 @@
<module> <module>
<rawname>sccp_manager</rawname> <rawname>sccp_manager</rawname>
<name>SCCP Manager</name> <name>SCCP Manager</name>
<version>13.0.0.4</version> <version>13.0.0.4M</version>
<type>setup</type> <type>setup</type>
<category>SCCP Connectivity</category> <category>SCCP Connectivity</category>
<publisher>Alex GP</publisher> <publisher>Alex GP</publisher>
@ -19,7 +19,7 @@
</changelog> </changelog>
<location></location> <location></location>
<supported> <supported>
<version>13.0.0.1</version> <version>13.0.0.1M</version>
</supported> </supported>
<info>https://github.com/PhantomVl/sccp_manager</info> <info>https://github.com/PhantomVl/sccp_manager</info>
<license>GPL</license> <license>GPL</license>