diff options
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteSimulationData.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index 42cd59d..c5a02d0 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs | |||
@@ -1232,6 +1232,8 @@ namespace OpenSim.Data.SQLite | |||
1232 | createCol(prims, "VolumeDetect", typeof(Int16)); | 1232 | createCol(prims, "VolumeDetect", typeof(Int16)); |
1233 | 1233 | ||
1234 | createCol(prims, "MediaURL", typeof(String)); | 1234 | createCol(prims, "MediaURL", typeof(String)); |
1235 | |||
1236 | createCol(prims, "DynAttrs", typeof(String)); | ||
1235 | 1237 | ||
1236 | // Add in contraints | 1238 | // Add in contraints |
1237 | prims.PrimaryKey = new DataColumn[] { prims.Columns["UUID"] }; | 1239 | prims.PrimaryKey = new DataColumn[] { prims.Columns["UUID"] }; |
@@ -1711,6 +1713,16 @@ namespace OpenSim.Data.SQLite | |||
1711 | // m_log.DebugFormat("[SQLITE]: MediaUrl type [{0}]", row["MediaURL"].GetType()); | 1713 | // m_log.DebugFormat("[SQLITE]: MediaUrl type [{0}]", row["MediaURL"].GetType()); |
1712 | prim.MediaUrl = (string)row["MediaURL"]; | 1714 | prim.MediaUrl = (string)row["MediaURL"]; |
1713 | } | 1715 | } |
1716 | |||
1717 | if (!(row["DynAttrs"] is System.DBNull)) | ||
1718 | { | ||
1719 | //m_log.DebugFormat("[SQLITE]: DynAttrs type [{0}]", row["DynAttrs"].GetType()); | ||
1720 | prim.DynAttrs = DAMap.FromXml((string)row["DynAttrs"]); | ||
1721 | } | ||
1722 | else | ||
1723 | { | ||
1724 | prim.DynAttrs = new DAMap(); | ||
1725 | } | ||
1714 | 1726 | ||
1715 | return prim; | 1727 | return prim; |
1716 | } | 1728 | } |
@@ -2133,6 +2145,11 @@ namespace OpenSim.Data.SQLite | |||
2133 | row["VolumeDetect"] = 0; | 2145 | row["VolumeDetect"] = 0; |
2134 | 2146 | ||
2135 | row["MediaURL"] = prim.MediaUrl; | 2147 | row["MediaURL"] = prim.MediaUrl; |
2148 | |||
2149 | if (prim.DynAttrs.Count > 0) | ||
2150 | row["DynAttrs"] = prim.DynAttrs.ToXml(); | ||
2151 | else | ||
2152 | row["DynAttrs"] = null; | ||
2136 | } | 2153 | } |
2137 | 2154 | ||
2138 | /// <summary> | 2155 | /// <summary> |
@@ -2392,7 +2409,7 @@ namespace OpenSim.Data.SQLite | |||
2392 | 2409 | ||
2393 | if (!(row["Media"] is System.DBNull)) | 2410 | if (!(row["Media"] is System.DBNull)) |
2394 | s.Media = PrimitiveBaseShape.MediaList.FromXml((string)row["Media"]); | 2411 | s.Media = PrimitiveBaseShape.MediaList.FromXml((string)row["Media"]); |
2395 | 2412 | ||
2396 | return s; | 2413 | return s; |
2397 | } | 2414 | } |
2398 | 2415 | ||