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:
Evgeny Gryaznov 2008-10-05 22:47:09 +00:00
parent 2ef4606243
commit cb47357172
2 changed files with 11 additions and 0 deletions

View File

@ -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(),
);

View File

@ -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);
}