diff options
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 9a056b2..caae677 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -779,36 +779,6 @@ namespace OpenSim.Data.MySQL | |||
779 | } | 779 | } |
780 | 780 | ||
781 | /// <summary> | 781 | /// <summary> |
782 | /// Adds an attachment item to a user | ||
783 | /// </summary> | ||
784 | /// <param name="user">the user UUID</param> | ||
785 | /// <param name="item">the item UUID</param> | ||
786 | override public void AddAttachment(LLUUID user, LLUUID item) | ||
787 | { | ||
788 | return; | ||
789 | } | ||
790 | |||
791 | /// <summary> | ||
792 | /// Removes an attachment from a user | ||
793 | /// </summary> | ||
794 | /// <param name="user">the user UUID</param> | ||
795 | /// <param name="item">the item UUID</param> | ||
796 | override public void RemoveAttachment(LLUUID user, LLUUID item) | ||
797 | { | ||
798 | return; | ||
799 | } | ||
800 | |||
801 | /// <summary> | ||
802 | /// Get the list of item attached to a user | ||
803 | /// </summary> | ||
804 | /// <param name="user">the user UUID</param> | ||
805 | /// <returns>UUID list of attached item</returns> | ||
806 | override public List<LLUUID> GetAttachments(LLUUID user) | ||
807 | { | ||
808 | return new List<LLUUID>(); | ||
809 | } | ||
810 | |||
811 | /// <summary> | ||
812 | /// Database provider name | 782 | /// Database provider name |
813 | /// </summary> | 783 | /// </summary> |
814 | /// <returns>Provider name</returns> | 784 | /// <returns>Provider name</returns> |
@@ -845,5 +815,14 @@ namespace OpenSim.Data.MySQL | |||
845 | { | 815 | { |
846 | database.writeAttachments(agentID, data); | 816 | database.writeAttachments(agentID, data); |
847 | } | 817 | } |
818 | |||
819 | override public void ResetAttachments(LLUUID userID) | ||
820 | { | ||
821 | MySqlCommand cmd = (MySqlCommand) (database.Connection.CreateCommand()); | ||
822 | cmd.CommandText = "update avatarattachments set asset = '00000000-0000-0000-0000-000000000000' where UUID = ?uuid"; | ||
823 | cmd.Parameters.AddWithValue("?uuid", userID.ToString()); | ||
824 | |||
825 | cmd.ExecuteNonQuery(); | ||
826 | } | ||
848 | } | 827 | } |
849 | } | 828 | } |