mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
pull out some uneeded attributes, and setup keys on primshapes dataset
This commit is contained in:
@@ -22,9 +22,6 @@ namespace OpenSim.DataStore.MonoSqliteStorage
|
||||
private const string primSelect = "select * from prims";
|
||||
private const string shapeSelect = "select * from primshapes";
|
||||
|
||||
private Dictionary<string, DbType> primDataDefs;
|
||||
private Dictionary<string, DbType> shapeDataDefs;
|
||||
|
||||
private DataSet ds;
|
||||
private SqliteDataAdapter primDa;
|
||||
private SqliteDataAdapter shapeDa;
|
||||
@@ -57,6 +54,9 @@ namespace OpenSim.DataStore.MonoSqliteStorage
|
||||
|
||||
// shapeDa.FillSchema(ds, SchemaType.Source, "ShapeSchema");
|
||||
shapeDa.Fill(ds, "primshapes");
|
||||
DataTable shapes = ds.Tables["primshapes"];
|
||||
shapes.PrimaryKey = new DataColumn[] { shapes.Columns["UUID"] };
|
||||
setupShapeCommands(shapeDa, conn);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user