Add the migration for friends and guard the presence Report function
parent
9a8f6c79c9
commit
397a296492
|
@ -75,6 +75,10 @@ namespace OpenSim.Data.MySQL
|
||||||
public bool ReportAgent(UUID sessionID, UUID regionID, string position,
|
public bool ReportAgent(UUID sessionID, UUID regionID, string position,
|
||||||
string lookAt)
|
string lookAt)
|
||||||
{
|
{
|
||||||
|
PresenceData[] pd = Get("SessionID", sessionID.ToString());
|
||||||
|
if (pd.Length == 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
MySqlCommand cmd = new MySqlCommand();
|
MySqlCommand cmd = new MySqlCommand();
|
||||||
|
|
||||||
cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, Position=?Position, LookAt=?LookAt', Online='true' where `SessionID`=?SessionID", m_Realm);
|
cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, Position=?Position, LookAt=?LookAt', Online='true' where `SessionID`=?SessionID", m_Realm);
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
CREATE TABLE `Friends` (
|
||||||
|
`PrincipalID` CHAR(36) NOT NULL,
|
||||||
|
`FriendID` VARCHAR(255) NOT NULL,
|
||||||
|
`Flags` CHAR(16) NOT NULL DEFAULT '0'
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
COMMIT;
|
Loading…
Reference in New Issue