removal of more dead alter table code

0.6.0-stable
Sean Dague 2008-09-25 00:20:57 +00:00
parent 8b1edb6292
commit 7117f8b680
1 changed files with 2 additions and 39 deletions

View File

@ -1711,25 +1711,7 @@ namespace OpenSim.Data.MySQL
s.ExtraParams = (byte[]) row["ExtraParams"];
try
{
s.State = Convert.ToByte(row["State"]);
}
catch (InvalidCastException)
{
// Database table was created before we got here and needs to be created! :P
lock (m_dataSet)
{
using (
MySqlCommand cmd =
new MySqlCommand(
"ALTER TABLE `primshapes` ADD COLUMN `State` int NOT NULL default 0;",
m_connection))
{
cmd.ExecuteNonQuery();
}
}
}
return s;
}
@ -1772,27 +1754,8 @@ namespace OpenSim.Data.MySQL
row["ProfileHollow"] = s.ProfileHollow;
row["Texture"] = s.TextureEntry;
row["ExtraParams"] = s.ExtraParams;
try
{
row["State"] = s.State;
}
catch (MySqlException)
{
lock (m_dataSet)
{
// Database table was created before we got here and needs to be created! :P
using (
MySqlCommand cmd =
new MySqlCommand(
"ALTER TABLE `primshapes` ADD COLUMN `State` int NOT NULL default 0;",
m_connection))
{
cmd.ExecuteNonQuery();
}
}
}
}
/// <summary>
///