Remove jabber operator field

This commit is contained in:
Dmitriy Simushev 2014-10-17 12:48:28 +00:00
parent a34cb53e91
commit 31c4afe751
2 changed files with 3 additions and 6 deletions

View File

@ -190,7 +190,6 @@ operator:
istatus: "int DEFAULT 0"
idisabled: "int DEFAULT 0"
vcavatar: "varchar(255)"
vcjabbername: "varchar(255)"
# Operators privileges bitmask.
iperm: "int DEFAULT 0"
dtmrestore: "int NOT NULL DEFAULT 0"

View File

@ -328,7 +328,6 @@ function update_operator(
':localname' => $locale_name,
':commonname' => $common_name,
':email' => $email,
':jabbername' => '',
':operatorid' => $operator_id,
':code' => $code,
);
@ -339,7 +338,7 @@ function update_operator(
("UPDATE {operator} SET vclogin = :login, "
. ($password ? " vcpassword=:password, " : "")
. "vclocalename = :localname, vccommonname = :commonname, "
. "vcemail = :email, code = :code, vcjabbername= :jabbername "
. "vcemail = :email, code = :code "
. "WHERE operatorid = :operatorid"),
$values
);
@ -382,10 +381,10 @@ function create_operator(
$db->query(
("INSERT INTO {operator} ("
. "vclogin, vcpassword, vclocalename, vccommonname, vcavatar, "
. "vcemail, code, vcjabbername "
. "vcemail, code "
. ") VALUES ("
. ":login, :pass, :localename, :commonname, :avatar, "
. ":email, :code, :jabber"
. ":email, :code"
. ")"),
array(
':login' => $login,
@ -395,7 +394,6 @@ function create_operator(
':avatar' => $avatar,
':email' => $email,
':code' => $code,
':jabber' => '',
)
);