From dabb3117115d9bfa8cca19eef029511971f62d02 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 24 Sep 2008 21:16:47 +0000 Subject: remove configurable table names from the mysql user driver. That doesn't work in a world of migrations anyway, and is only cruft that will confuse people. --- OpenSim/Data/MySQL/MySQLUserData.cs | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 5f7db15..3226162 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -58,9 +58,9 @@ namespace OpenSim.Data.MySQL public int m_maxConnections = 10; public int m_lastConnect; - private string m_agentsTableName; - private string m_usersTableName; - private string m_userFriendsTableName; + private string m_agentsTableName = "agents"; + private string m_usersTableName = "users"; + private string m_userFriendsTableName = "userfriends"; private string m_appearanceTableName = "avatarappearance"; private string m_attachmentsTableName = "avatarattachments"; private string m_connectString; @@ -123,24 +123,6 @@ namespace OpenSim.Data.MySQL string settingPooling = iniFile.ParseFileReadValue("pooling"); string settingPort = iniFile.ParseFileReadValue("port"); - m_usersTableName = iniFile.ParseFileReadValue("userstablename"); - if (m_usersTableName == null) - { - m_usersTableName = "users"; - } - - m_userFriendsTableName = iniFile.ParseFileReadValue("userfriendstablename"); - if (m_userFriendsTableName == null) - { - m_userFriendsTableName = "userfriends"; - } - - m_agentsTableName = iniFile.ParseFileReadValue("agentstablename"); - if (m_agentsTableName == null) - { - m_agentsTableName = "agents"; - } - m_connectString = "Server=" + settingHostname + ";Port=" + settingPort + ";Database=" + settingDatabase + ";User ID=" + settingUsername + ";Password=" + settingPassword + ";Pooling=" + settingPooling + ";"; @@ -159,9 +141,6 @@ namespace OpenSim.Data.MySQL else { m_connectString = connect; - m_agentsTableName = "agents"; - m_usersTableName = "users"; - m_userFriendsTableName = "userfriends"; database = new MySQLManager(m_connectString); m_log.Info("Creating " + m_maxConnections + " DB connections..."); -- cgit v1.1