aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-07-06 23:50:06 +0200
committerGitHub <noreply@github.com>2019-07-06 23:50:06 +0200
commit0dbc294836bbf1f11e370efeeae0904d3bb099e0 (patch)
treecf98c2eb6bfb53666392f8fbe52f1007fc72e4e7 /Emby.Server.Implementations/Data/BaseSqliteRepository.cs
parent3b49c1bac01d73eb3f3d6620370d266d23026790 (diff)
Move VACUUM command to fix merge error
This fixes a syntax error.
Diffstat (limited to 'Emby.Server.Implementations/Data/BaseSqliteRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/BaseSqliteRepository.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
index 919453d2a..010ad6384 100644
--- a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
+++ b/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;
}