Browse Source

Move VACUUM command to fix merge error

This fixes a syntax error.
Erwin de Haan 6 năm trước cách đây
mục cha
commit
0dbc294836
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

+ 3 - 2
Emby.Server.Implementations/Data/BaseSqliteRepository.cs

@@ -124,6 +124,9 @@ namespace Emby.Server.Implementations.Data
             }
 
             WriteConnection.Execute("PRAGMA temp_store=" + (int)TempStore);
+            
+            // Configuration and pragmas can affect VACUUM so it needs to be last.
+            WriteConnection.Execute("VACUUM");
 
             return new ManagedConnection(WriteConnection, WriteLock);
         }
@@ -170,8 +173,6 @@ namespace Emby.Server.Implementations.Data
                     columnNames.Add(name);
                 }
             }
-            // Configuration and pragmas can affect VACUUM so it needs to be last.
-            queries.Add("VACUUM");
 
             return columnNames;
         }