|
|
@@ -1155,26 +1155,6 @@ public class SQLiteProviderFactory : IProviderFactory
|
|
|
|
|
|
MainProvider.ExecuteSQL(access, "PRAGMA foreign_keys = off;");
|
|
|
|
|
|
- // using (var command = access.CreateCommand())
|
|
|
- // {
|
|
|
- //
|
|
|
- // command.CommandText =
|
|
|
- // $"select name from sqlite_master where type='trigger' and tbl_name='{table}' and sql is not null;";
|
|
|
- // using (var reader = command.ExecuteReader())
|
|
|
- // {
|
|
|
- // if (reader.HasRows)
|
|
|
- // while (reader.Read())
|
|
|
- // ExecuteSQL(access,string.Format("DROP TRIGGER {0}", reader.GetString(0)));
|
|
|
- // }
|
|
|
- // command.CommandText = $"select name from sqlite_master where type='view' and name='{table}';";
|
|
|
- // using (var reader = command.ExecuteReader())
|
|
|
- // {
|
|
|
- // if (reader.HasRows)
|
|
|
- // while (reader.Read())
|
|
|
- // ExecuteSQL(access,string.Format("DROP VIEW {0}", reader.GetString(0)));
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
using (var transaction = access.Connection.BeginTransaction())
|
|
|
{
|
|
|
var drops = new List<string>();
|