mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-23 17:14:18 -04:00
Compare commits
2 Commits
image-shar
...
v3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2639c069bc | ||
|
|
d185783987 |
@@ -36,7 +36,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
|||||||
removeFailedDownloads = false;
|
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(removeCompletedDownloads ? 1 : 0);
|
||||||
updateClientCmd.AddParameter(removeFailedDownloads ? 1 : 0);
|
updateClientCmd.AddParameter(removeFailedDownloads ? 1 : 0);
|
||||||
|
|||||||
@@ -23,6 +23,11 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
|
|||||||
|
|
||||||
public override bool SupportsTransactions => true;
|
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)
|
public override void Process(AlterColumnExpression expression)
|
||||||
{
|
{
|
||||||
var tableDefinition = GetTableSchema(expression.TableName);
|
var tableDefinition = GetTableSchema(expression.TableName);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
# Increment packageVersion when package scripts change
|
# 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
|
# For now we keep the build version and package version the same
|
||||||
buildVersion=$packageVersion
|
buildVersion=$packageVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user