From 43f3b9ad7b24cbd4c020c36e1cf5133e09a66c8f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 1 Aug 2008 02:14:34 +0000 Subject: Patch #8 in the estate series. Introduces the concept of an estate owner (alongside the master avatar) and provides storage fo the abuse email address. No user functionality yet. This patch includes a migration. --- OpenSim/Data/MySQL/MySQLEstateData.cs | 7 +++++++ OpenSim/Data/SQLite/SQLiteEstateData.cs | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MySQL/MySQLEstateData.cs b/OpenSim/Data/MySQL/MySQLEstateData.cs index 78d4446..e843457 100644 --- a/OpenSim/Data/MySQL/MySQLEstateData.cs +++ b/OpenSim/Data/MySQL/MySQLEstateData.cs @@ -185,6 +185,13 @@ namespace OpenSim.Data.MySQL else m_FieldMap[name].SetValue(es, false); } + else if(m_FieldMap[name].GetValue(es) is libsecondlife.LLUUID) + { + LLUUID uuid = LLUUID.Zero; + + LLUUID.TryParse(r[name].ToString(), out uuid); + m_FieldMap[name].SetValue(es, uuid); + } else { m_FieldMap[name].SetValue(es, r[name]); diff --git a/OpenSim/Data/SQLite/SQLiteEstateData.cs b/OpenSim/Data/SQLite/SQLiteEstateData.cs index 93d86b6..092f4d5 100644 --- a/OpenSim/Data/SQLite/SQLiteEstateData.cs +++ b/OpenSim/Data/SQLite/SQLiteEstateData.cs @@ -109,6 +109,13 @@ namespace OpenSim.Data.SQLite else m_FieldMap[name].SetValue(es, false); } + else if(m_FieldMap[name].GetValue(es) is libsecondlife.LLUUID) + { + LLUUID uuid = LLUUID.Zero; + + LLUUID.TryParse(r[name].ToString(), out uuid); + m_FieldMap[name].SetValue(es, uuid); + } else { m_FieldMap[name].SetValue(es, Convert.ChangeType(r[name], m_FieldMap[name].FieldType)); -- cgit v1.1