mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Add rename deprecated indexer flags migration
This commit is contained in:
parent
336cb4a2bc
commit
e5963c9ee1
@ -0,0 +1,17 @@
|
|||||||
|
using FluentMigrator;
|
||||||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
|
{
|
||||||
|
[Migration(233)]
|
||||||
|
public class rename_deprecated_indexer_flags : NzbDroneMigrationBase
|
||||||
|
{
|
||||||
|
protected override void MainDbUpgrade()
|
||||||
|
{
|
||||||
|
Execute.Sql("UPDATE \"DownloadHistory\" SET \"Release\" = REPLACE(REPLACE(\"Release\", 'hdB_Internal', 'g_Internal'), 'ahD_Internal', 'g_Internal') WHERE \"Release\" IS NOT NULL");
|
||||||
|
Execute.Sql("UPDATE \"IndexerStatus\" SET \"LastRssSyncReleaseInfo\" = REPLACE(REPLACE(\"LastRssSyncReleaseInfo\", 'hdB_Internal', 'g_Internal'), 'ahD_Internal', 'g_Internal') WHERE \"LastRssSyncReleaseInfo\" IS NOT NULL");
|
||||||
|
Execute.Sql("UPDATE \"PendingReleases\" SET \"Release\" = REPLACE(REPLACE(\"Release\", 'hdB_Internal', 'g_Internal'), 'ahD_Internal', 'g_Internal') WHERE \"Release\" IS NOT NULL");
|
||||||
|
Execute.Sql("UPDATE \"History\" SET \"Data\" = REPLACE(REPLACE(\"Data\", 'HDB_Internal', 'G_Internal'), 'AHD_Internal', 'G_Internal') WHERE \"Data\" IS NOT NULL");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user