diff options
author | BlueWall | 2014-10-27 17:27:42 -0400 |
---|---|---|
committer | BlueWall | 2014-10-27 17:27:42 -0400 |
commit | b46387091470f3d1465c05625a656228ca54fd61 (patch) | |
tree | bf1dce79eda615246f32ec88b2df61a60a223cc4 /OpenSim/Data | |
parent | Refresh OpenMetaverse libraries again at 0f4b361 but with Windows builds to s... (diff) | |
download | opensim-SC_OLD-b46387091470f3d1465c05625a656228ca54fd61.zip opensim-SC_OLD-b46387091470f3d1465c05625a656228ca54fd61.tar.gz opensim-SC_OLD-b46387091470f3d1465c05625a656228ca54fd61.tar.bz2 opensim-SC_OLD-b46387091470f3d1465c05625a656228ca54fd61.tar.xz |
Add hypergrid teleporting support to user profiles picks
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 8 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/Resources/UserProfiles.migrations | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index c8479f0..cab0ca8 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -397,6 +397,7 @@ namespace OpenSim.Data.MySQL | |||
397 | UUID.TryParse((string)reader["parceluuid"], out pick.ParcelId); | 397 | UUID.TryParse((string)reader["parceluuid"], out pick.ParcelId); |
398 | UUID.TryParse((string)reader["snapshotuuid"], out pick.SnapshotId); | 398 | UUID.TryParse((string)reader["snapshotuuid"], out pick.SnapshotId); |
399 | pick.GlobalPos = (string)reader["posglobal"]; | 399 | pick.GlobalPos = (string)reader["posglobal"]; |
400 | pick.Gatekeeper = (string)reader["gatekeeper"]; | ||
400 | bool.TryParse((string)reader["toppick"], out pick.TopPick); | 401 | bool.TryParse((string)reader["toppick"], out pick.TopPick); |
401 | bool.TryParse((string)reader["enabled"], out pick.Enabled); | 402 | bool.TryParse((string)reader["enabled"], out pick.Enabled); |
402 | pick.Name = (string)reader["name"]; | 403 | pick.Name = (string)reader["name"]; |
@@ -436,14 +437,16 @@ namespace OpenSim.Data.MySQL | |||
436 | query += "?SimName,"; | 437 | query += "?SimName,"; |
437 | query += "?GlobalPos,"; | 438 | query += "?GlobalPos,"; |
438 | query += "?SortOrder,"; | 439 | query += "?SortOrder,"; |
439 | query += "?Enabled) "; | 440 | query += "?Enabled,"; |
441 | query += "?Gatekeeper)"; | ||
440 | query += "ON DUPLICATE KEY UPDATE "; | 442 | query += "ON DUPLICATE KEY UPDATE "; |
441 | query += "parceluuid=?ParcelId,"; | 443 | query += "parceluuid=?ParcelId,"; |
442 | query += "name=?Name,"; | 444 | query += "name=?Name,"; |
443 | query += "description=?Desc,"; | 445 | query += "description=?Desc,"; |
444 | query += "snapshotuuid=?SnapshotId,"; | 446 | query += "snapshotuuid=?SnapshotId,"; |
445 | query += "pickuuid=?PickId,"; | 447 | query += "pickuuid=?PickId,"; |
446 | query += "posglobal=?GlobalPos"; | 448 | query += "posglobal=?GlobalPos,"; |
449 | query += "gatekeeper=?Gatekeeper"; | ||
447 | 450 | ||
448 | try | 451 | try |
449 | { | 452 | { |
@@ -463,6 +466,7 @@ namespace OpenSim.Data.MySQL | |||
463 | cmd.Parameters.AddWithValue("?Original", pick.OriginalName.ToString()); | 466 | cmd.Parameters.AddWithValue("?Original", pick.OriginalName.ToString()); |
464 | cmd.Parameters.AddWithValue("?SimName",pick.SimName.ToString()); | 467 | cmd.Parameters.AddWithValue("?SimName",pick.SimName.ToString()); |
465 | cmd.Parameters.AddWithValue("?GlobalPos", pick.GlobalPos); | 468 | cmd.Parameters.AddWithValue("?GlobalPos", pick.GlobalPos); |
469 | cmd.Parameters.AddWithValue("?Gatekeeper",pick.Gatekeeper); | ||
466 | cmd.Parameters.AddWithValue("?SortOrder", pick.SortOrder.ToString ()); | 470 | cmd.Parameters.AddWithValue("?SortOrder", pick.SortOrder.ToString ()); |
467 | cmd.Parameters.AddWithValue("?Enabled", pick.Enabled.ToString()); | 471 | cmd.Parameters.AddWithValue("?Enabled", pick.Enabled.ToString()); |
468 | 472 | ||
diff --git a/OpenSim/Data/MySQL/Resources/UserProfiles.migrations b/OpenSim/Data/MySQL/Resources/UserProfiles.migrations index bd325da..87e99fa 100644 --- a/OpenSim/Data/MySQL/Resources/UserProfiles.migrations +++ b/OpenSim/Data/MySQL/Resources/UserProfiles.migrations | |||
@@ -90,4 +90,9 @@ CREATE TABLE IF NOT EXISTS `usersettings` ( | |||
90 | `email` varchar(254) NOT NULL, | 90 | `email` varchar(254) NOT NULL, |
91 | PRIMARY KEY (`useruuid`) | 91 | PRIMARY KEY (`useruuid`) |
92 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | 92 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
93 | commit; \ No newline at end of file | 93 | commit; |
94 | |||
95 | :VERSION 4 # ------------------------------- | ||
96 | begin; | ||
97 | ALTER TABLE userpicks ADD COLUMN gatekeeper varchar(255); | ||
98 | commit; | ||