Compare commits

...

2 commits

Author SHA1 Message Date
Mark McDowall
67e2fe551a Bumped package version to 3.0.10 2023-03-06 10:28:17 -08:00
Mark McDowall
5db5b1dace Fixed: Migrations on SQLite 3.41.0 2023-03-06 07:27:50 -08:00
3 changed files with 7 additions and 2 deletions

View file

@ -36,7 +36,7 @@ namespace NzbDrone.Core.Datastore.Migration
removeFailedDownloads = false;
}
using (var updateClientCmd = conn.CreateCommand(tran, $"UPDATE DownloadClients SET RemoveCompletedDownloads = (CASE WHEN Implementation IN (\"RTorrent\", \"Flood\") THEN 0 ELSE ? END), RemoveFailedDownloads = ?"))
using (var updateClientCmd = conn.CreateCommand(tran, $"UPDATE DownloadClients SET RemoveCompletedDownloads = (CASE WHEN Implementation IN ('RTorrent', 'Flood') THEN 0 ELSE ? END), RemoveFailedDownloads = ?"))
{
updateClientCmd.AddParameter(removeCompletedDownloads ? 1 : 0);
updateClientCmd.AddParameter(removeFailedDownloads ? 1 : 0);

View file

@ -23,6 +23,11 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
public override bool SupportsTransactions => true;
public override bool TableExists(string schemaName, string tableName)
{
return Exists("select count(*) from sqlite_master where name='{0}' and type='table'", tableName);
}
public override void Process(AlterColumnExpression expression)
{
var tableDefinition = GetTableSchema(expression.TableName);

View file

@ -1,7 +1,7 @@
#! /bin/bash
# Increment packageVersion when package scripts change
packageVersion='3.0.9'
packageVersion='3.0.10'
# For now we keep the build version and package version the same
buildVersion=$packageVersion