mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* Applied a patch that: Added estate ban table to migration scripts and nhibernate mapping. Refactored property getters and setters for estate ban object to support NHibernate.
* Added estate ban table to migration scripts of all supported databases. * Added nhibernate mapping for EstateBans property of EstateSettings * Refactored property accessors for EstateBan object. * Added comments for EstateBan properties. * Ensured that NHibernate tests pass with NUnitGUI. * Ensured that nant test target passes. This fixes mantis #3210. Thank you, tlaukkan!
This commit is contained in:
@@ -332,9 +332,9 @@ namespace OpenSim.Data.MSSQL
|
||||
// UUID uuid;
|
||||
// UUID.TryParse(reader["bannedUUID"].ToString(), out uuid);
|
||||
|
||||
eb.bannedUUID = new UUID((Guid)reader["bannedUUID"]); //uuid;
|
||||
eb.bannedIP = "0.0.0.0";
|
||||
eb.bannedIPHostMask = "0.0.0.0";
|
||||
eb.BannedUserID = new UUID((Guid)reader["bannedUUID"]); //uuid;
|
||||
eb.BannedHostAddress = "0.0.0.0";
|
||||
eb.BannedHostIPMask = "0.0.0.0";
|
||||
es.AddBan(eb);
|
||||
}
|
||||
}
|
||||
@@ -386,7 +386,7 @@ namespace OpenSim.Data.MSSQL
|
||||
{
|
||||
cmd.Parameters.Add(_Database.CreateParameter("@EstateID", es.EstateID));
|
||||
|
||||
cmd.Parameters.Add(_Database.CreateParameter("@bannedUUID", b.bannedUUID));
|
||||
cmd.Parameters.Add(_Database.CreateParameter("@bannedUUID", b.BannedUserID));
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user