Kenric Nugteren 1 месяц назад
Родитель
Сommit
1a1ee82909
1 измененных файлов с 0 добавлено и 20 удалено
  1. 0 20
      inabox.database.sqlite/SQLiteProvider.cs

+ 0 - 20
inabox.database.sqlite/SQLiteProvider.cs

@@ -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>();