Move VACUUM command to fix merge error

This fixes a syntax error.
This commit is contained in:
Erwin de Haan 2019-07-06 23:50:06 +02:00 committed by GitHub
parent 3b49c1bac0
commit 0dbc294836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}