mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Mantis#2658. Thank you kindly, StrawberryFride for a patch that:
Keeping up with MySQL and SQLite. Small code changes and another resource file to add.
This commit is contained in:
@@ -1048,6 +1048,9 @@ VALUES
|
||||
if (!primRow.IsNull("ClickAction"))
|
||||
prim.ClickAction = Convert.ToByte(primRow["ClickAction"]);
|
||||
|
||||
prim.CollisionSound = new UUID(primRow["CollisionSound"].ToString());
|
||||
prim.CollisionSoundVolume = Convert.ToSingle(primRow["CollisionSoundVolume"]);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1419,6 +1422,9 @@ VALUES
|
||||
row["ClickAction"] = clickAction;
|
||||
|
||||
row["Material"] = prim.Material;
|
||||
|
||||
row["CollisionSound"] = prim.CollisionSound.ToString();
|
||||
row["CollisionSoundVolume"] = prim.CollisionSoundVolume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
6
OpenSim/Data/MSSQL/Resources/011_RegionStore.sql
Normal file
6
OpenSim/Data/MSSQL/Resources/011_RegionStore.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
BEGIN TRANSACTION
|
||||
|
||||
ALTER TABLE prims ADD CollisionSound char(36) not null default '00000000-0000-0000-0000-000000000000'
|
||||
ALTER TABLE prims ADD CollisionSoundVolume float not null default 0.0
|
||||
|
||||
COMMIT
|
||||
Reference in New Issue
Block a user