Correct SQL for SET DEFAULT
This commit is contained in:
parent
34a7f6a163
commit
649b717ce7
|
@ -1446,8 +1446,8 @@ and open the template in the editor. Base Version before all crash :-)
|
||||||
<name>useRedialMenu</name>
|
<name>useRedialMenu</name>
|
||||||
<label>Redial using Phonebook</label>
|
<label>Redial using Phonebook</label>
|
||||||
<default>off</default>
|
<default>off</default>
|
||||||
<button value="on">On</button>
|
<button value="yes">On</button>
|
||||||
<button value="off">Off</button>
|
<button value="no">Off</button>
|
||||||
<help>You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number.</help>
|
<help>You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number.</help>
|
||||||
</item>
|
</item>
|
||||||
<item type="IS" id="6" seq="99">
|
<item type="IS" id="6" seq="99">
|
||||||
|
|
|
@ -99,7 +99,7 @@ function Get_DB_config($sccp_compatible)
|
||||||
'_profileid' => array('create' => "INT(11) NOT NULL DEFAULT '0' AFTER `_loginname`"),
|
'_profileid' => array('create' => "INT(11) NOT NULL DEFAULT '0' AFTER `_loginname`"),
|
||||||
'_dialrules' => array('create' => "VARCHAR(255) NULL DEFAULT NULL AFTER `_profileid`"),
|
'_dialrules' => array('create' => "VARCHAR(255) NULL DEFAULT NULL AFTER `_profileid`"),
|
||||||
|
|
||||||
'useRedialMenu' => array('create' => "VARCHAR(5) NULL DEFAULT 'no' AFTER `_dialrules`"),
|
'useRedialMenu' => array('create' => "enum('yes','no') NOT NULL default 'no'", 'modify' => "enum('yes','no')"),
|
||||||
'dtmfmode' => array('drop' => "yes"),
|
'dtmfmode' => array('drop' => "yes"),
|
||||||
'force_dtmfmode' => array('create' => "ENUM('auto','rfc2833','skinny') NOT NULL default 'auto'",
|
'force_dtmfmode' => array('create' => "ENUM('auto','rfc2833','skinny') NOT NULL default 'auto'",
|
||||||
'modify' => "ENUM('auto','rfc2833','skinny')"),
|
'modify' => "ENUM('auto','rfc2833','skinny')"),
|
||||||
|
@ -431,7 +431,7 @@ function InstallDB_updateSchema($db_config)
|
||||||
$count_modify ++;
|
$count_modify ++;
|
||||||
}
|
}
|
||||||
if (!empty($row_data['def_modify'])) {
|
if (!empty($row_data['def_modify'])) {
|
||||||
$sql_modify .= "MODIFY COLUMN {$row_fld} SET DEFAULT {$row_data['def_modify']}, ";
|
$sql_modify .= "ALTER COLUMN {$row_fld} SET DEFAULT '{$row_data['def_modify']}', ";
|
||||||
$count_modify ++;
|
$count_modify ++;
|
||||||
}
|
}
|
||||||
if (!empty($row_data['drop'])) {
|
if (!empty($row_data['drop'])) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<module>
|
<module>
|
||||||
<rawname>sccp_manager</rawname>
|
<rawname>sccp_manager</rawname>
|
||||||
<name>SCCP Manager</name>
|
<name>SCCP Manager</name>
|
||||||
<version>14.3.0.0</version>
|
<version>14.3.0.1</version>
|
||||||
<type>setup</type>
|
<type>setup</type>
|
||||||
<category>SCCP Connectivity</category>
|
<category>SCCP Connectivity</category>
|
||||||
<publisher>Steve Lad, Alex GP</publisher>
|
<publisher>Steve Lad, Alex GP</publisher>
|
||||||
|
|
|
@ -47,17 +47,6 @@ $model_list = array();
|
||||||
$device_list = array();
|
$device_list = array();
|
||||||
$dialplan_list = array();
|
$dialplan_list = array();
|
||||||
|
|
||||||
//$time_zone = \FreePBX::Sccp_manager()-> extconfigs-> getextConfig('cisco_time');
|
|
||||||
//$system_time_zone = \FreePBX::Sccp_manager()->getSysnemTimeZone();
|
|
||||||
//$sofkey_list = \FreePBX::Sccp_manager()-> aminterface->sccp_list_keysets();
|
|
||||||
//$model_list = \FreePBX::Sccp_manager()->dbinterface->HWextension_db_SccpTableData("HWDevice");
|
|
||||||
//$extension_list = \FreePBX::Sccp_manager()->dbinterface->HWextension_db_SccpTableData("HWextension");
|
|
||||||
//$device_list = \FreePBX::Sccp_manager()->dbinterface->HWextension_db_SccpTableData("SccpDevice");
|
|
||||||
//$extension_list[]=array(model=>'NONE', vendor=>'CISCO', dns=>'0');
|
|
||||||
//$device_list[]=array(name=>'NONE', description=>'No Device');
|
|
||||||
|
|
||||||
//print_r($metainfo);
|
|
||||||
|
|
||||||
if (\FreePBX::Modules()->checkStatus("soundlang")) {
|
if (\FreePBX::Modules()->checkStatus("soundlang")) {
|
||||||
$syslangs = \FreePBX::Soundlang()->getLanguages();
|
$syslangs = \FreePBX::Soundlang()->getLanguages();
|
||||||
if (!is_array($syslangs)) {
|
if (!is_array($syslangs)) {
|
||||||
|
@ -72,8 +61,6 @@ if (!is_array($moh_list)) {
|
||||||
$moh_list = array('default');
|
$moh_list = array('default');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$items = $itm -> children();
|
$items = $itm -> children();
|
||||||
|
|
||||||
if ($h_show==1) {
|
if ($h_show==1) {
|
||||||
|
|
Loading…
Reference in a new issue