add if exists to the drop table

0.6.5-rc1
Sean Dague 2009-04-22 19:23:38 +00:00
parent b0ac6cd0e0
commit e0160e5640
2 changed files with 30 additions and 30 deletions

View File

@ -83,21 +83,21 @@ namespace OpenSim.Data.MySQL.Tests
// if a new table is added, it has to be dropped here
if (manager != null)
{
manager.ExecuteSql("drop table migrations");
manager.ExecuteSql("drop table prims");
manager.ExecuteSql("drop table primshapes");
manager.ExecuteSql("drop table primitems");
manager.ExecuteSql("drop table terrain");
manager.ExecuteSql("drop table land");
manager.ExecuteSql("drop table landaccesslist");
manager.ExecuteSql("drop table regionban");
manager.ExecuteSql("drop table regionsettings");
manager.ExecuteSql("drop table estate_managers");
manager.ExecuteSql("drop table estate_groups");
manager.ExecuteSql("drop table estate_users");
manager.ExecuteSql("drop table estateban");
manager.ExecuteSql("drop table estate_settings");
manager.ExecuteSql("drop table estate_map");
manager.ExecuteSql("drop table if exists migrations");
manager.ExecuteSql("drop table if exists prims");
manager.ExecuteSql("drop table if exists primshapes");
manager.ExecuteSql("drop table if exists primitems");
manager.ExecuteSql("drop table if exists terrain");
manager.ExecuteSql("drop table if exists land");
manager.ExecuteSql("drop table if exists landaccesslist");
manager.ExecuteSql("drop table if exists regionban");
manager.ExecuteSql("drop table if exists regionsettings");
manager.ExecuteSql("drop table if exists estate_managers");
manager.ExecuteSql("drop table if exists estate_groups");
manager.ExecuteSql("drop table if exists estate_users");
manager.ExecuteSql("drop table if exists estateban");
manager.ExecuteSql("drop table if exists estate_settings");
manager.ExecuteSql("drop table if exists estate_map");
}
}
}

View File

@ -80,21 +80,21 @@ namespace OpenSim.Data.MySQL.Tests
{
if (manager != null)
{
manager.ExecuteSql("drop table migrations");
manager.ExecuteSql("drop table prims");
manager.ExecuteSql("drop table primshapes");
manager.ExecuteSql("drop table primitems");
manager.ExecuteSql("drop table terrain");
manager.ExecuteSql("drop table land");
manager.ExecuteSql("drop table landaccesslist");
manager.ExecuteSql("drop table regionban");
manager.ExecuteSql("drop table regionsettings");
manager.ExecuteSql("drop table estate_managers");
manager.ExecuteSql("drop table estate_groups");
manager.ExecuteSql("drop table estate_users");
manager.ExecuteSql("drop table estateban");
manager.ExecuteSql("drop table estate_settings");
manager.ExecuteSql("drop table estate_map");
manager.ExecuteSql("drop table if exists migrations");
manager.ExecuteSql("drop table if exists prims");
manager.ExecuteSql("drop table if exists primshapes");
manager.ExecuteSql("drop table if exists primitems");
manager.ExecuteSql("drop table if exists terrain");
manager.ExecuteSql("drop table if exists land");
manager.ExecuteSql("drop table if exists landaccesslist");
manager.ExecuteSql("drop table if exists regionban");
manager.ExecuteSql("drop table if exists regionsettings");
manager.ExecuteSql("drop table if exists estate_managers");
manager.ExecuteSql("drop table if exists estate_groups");
manager.ExecuteSql("drop table if exists estate_users");
manager.ExecuteSql("drop table if exists estateban");
manager.ExecuteSql("drop table if exists estate_settings");
manager.ExecuteSql("drop table if exists estate_map");
}
}
}