mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
add columns: avatar, jabbername
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@156 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
2ef4606243
commit
cb47357172
@ -54,6 +54,8 @@ $dbtables = array(
|
||||
"vclocalename" => "varchar(64) NOT NULL",
|
||||
"vccommonname" => "varchar(64) NOT NULL",
|
||||
"dtmlastvisited" => "datetime DEFAULT 0",
|
||||
"vcavatar" => "varchar(255)",
|
||||
"vcjabbername" => "varchar(255)",
|
||||
),
|
||||
|
||||
"chatrevision" => array(
|
||||
@ -81,6 +83,7 @@ $memtables = array();
|
||||
$dbtables_can_update = array(
|
||||
"chatthread" => array("agentId", "userTyping", "agentTyping", "messageCount", "nextagent", "shownmessageid", "userid", "userAgent"),
|
||||
"chatmessage" => array("agentId"),
|
||||
"chatoperator" => array("vcavatar", "vcjabbername"),
|
||||
"chatban" => array(),
|
||||
);
|
||||
|
||||
|
@ -106,6 +106,14 @@ if ($act == "silentcreateall") {
|
||||
runsql("ALTER TABLE chatthread ADD userid varchar(255) DEFAULT \"\"", $link);
|
||||
}
|
||||
|
||||
if( in_array("chatoperator.vcavatar", $absent) ) {
|
||||
runsql("ALTER TABLE chatoperator ADD vcavatar varchar(255)", $link);
|
||||
}
|
||||
|
||||
if( in_array("chatoperator.vcjabbername", $absent) ) {
|
||||
runsql("ALTER TABLE chatoperator ADD vcjabbername varchar(255)", $link);
|
||||
}
|
||||
|
||||
if( in_array("chatthread.userAgent", $absent) ) {
|
||||
runsql("ALTER TABLE chatthread ADD userAgent varchar(255)", $link);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user