Kenric Nugteren пре 1 месец
родитељ
комит
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>();