1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-02 21:15:05 +00:00

New: Ignore Litestream tables in Database

(cherry picked from commit 2a26c6722afa5c657fde162cbddbe9e8731f3a0c)
This commit is contained in:
Bogdan 2024-07-25 07:30:56 +03:00
parent cb7e3987a9
commit c6362cb47a

View file

@ -219,7 +219,7 @@ protected virtual DataSet Read(string template, params object[] args)
protected virtual IList<TableDefinition> ReadTables()
{
const string sqlCommand = @"SELECT name, sql FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name;";
const string sqlCommand = @"SELECT name, sql FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' AND name NOT LIKE '_litestream_%' ORDER BY name;";
var dtTable = Read(sqlCommand).Tables[0];
var tableDefinitionList = new List<TableDefinition>();