Fix the build
This commit is contained in:
parent
370406c3de
commit
873fadbcaa
|
@ -4,8 +4,8 @@ using NUnit.Framework;
|
||||||
using NzbDrone.Common.Serializer;
|
using NzbDrone.Common.Serializer;
|
||||||
using NzbDrone.Core.Notifications;
|
using NzbDrone.Core.Notifications;
|
||||||
using NzbDrone.Core.Notifications.PushBullet;
|
using NzbDrone.Core.Notifications.PushBullet;
|
||||||
using NzbDrone.Core.Notifications.Pushover;
|
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Test.Datastore.Migration
|
namespace NzbDrone.Core.Test.Datastore.Migration
|
||||||
{
|
{
|
||||||
[TestFixture]
|
[TestFixture]
|
|
@ -120,7 +120,7 @@
|
||||||
<Compile Include="Datastore\Migration\071_unknown_quality_in_profileFixture.cs" />
|
<Compile Include="Datastore\Migration\071_unknown_quality_in_profileFixture.cs" />
|
||||||
<Compile Include="Datastore\Migration\072_history_grabIdFixture.cs" />
|
<Compile Include="Datastore\Migration\072_history_grabIdFixture.cs" />
|
||||||
<Compile Include="Datastore\Migration\070_delay_profileFixture.cs" />
|
<Compile Include="Datastore\Migration\070_delay_profileFixture.cs" />
|
||||||
<Compile Include="Datastore\Migration\087_pushbullet_devices_channels.cs" />
|
<Compile Include="Datastore\Migration\088_pushbullet_devices_channels.cs" />
|
||||||
<Compile Include="Datastore\Migration\086_pushbullet_device_idsFixture.cs" />
|
<Compile Include="Datastore\Migration\086_pushbullet_device_idsFixture.cs" />
|
||||||
<Compile Include="Datastore\Migration\085_expand_transmission_urlbaseFixture.cs" />
|
<Compile Include="Datastore\Migration\085_expand_transmission_urlbaseFixture.cs" />
|
||||||
<Compile Include="Datastore\Migration\084_update_quality_minmax_sizeFixture.cs" />
|
<Compile Include="Datastore\Migration\084_update_quality_minmax_sizeFixture.cs" />
|
||||||
|
|
|
@ -8,7 +8,7 @@ using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Datastore.Migration
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
{
|
{
|
||||||
[Migration(87)]
|
[Migration(88)]
|
||||||
public class pushbullet_devices_channels_list : NzbDroneMigrationBase
|
public class pushbullet_devices_channels_list : NzbDroneMigrationBase
|
||||||
{
|
{
|
||||||
protected override void MainDbUpgrade()
|
protected override void MainDbUpgrade()
|
||||||
|
@ -34,18 +34,26 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
if (settings.ContainsKey("deviceIds"))
|
if (settings.ContainsKey("deviceIds"))
|
||||||
{
|
{
|
||||||
var deviceIdsString = settings.GetValueOrDefault("deviceIds", "") as string;
|
var deviceIdsString = settings.GetValueOrDefault("deviceIds", "") as string;
|
||||||
|
|
||||||
|
if (deviceIdsString.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
var deviceIds = deviceIdsString.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries);
|
var deviceIds = deviceIdsString.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
||||||
settings["deviceIds"] = deviceIds;
|
settings["deviceIds"] = deviceIds;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (settings.ContainsKey("channelTags"))
|
if (settings.ContainsKey("channelTags"))
|
||||||
{
|
{
|
||||||
var channelTagsString = settings.GetValueOrDefault("channelTags", "") as string;
|
var channelTagsString = settings.GetValueOrDefault("channelTags", "") as string;
|
||||||
|
|
||||||
|
if (channelTagsString.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
var channelTags = channelTagsString.Split(new[] {","}, StringSplitOptions.RemoveEmptyEntries);
|
var channelTags = channelTagsString.Split(new[] {","}, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
|
||||||
settings["channelTags"] = channelTags;
|
settings["channelTags"] = channelTags;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
using (var updateCmd = conn.CreateCommand())
|
using (var updateCmd = conn.CreateCommand())
|
||||||
{
|
{
|
|
@ -262,7 +262,7 @@
|
||||||
<Compile Include="Datastore\Migration\084_update_quality_minmax_size.cs" />
|
<Compile Include="Datastore\Migration\084_update_quality_minmax_size.cs" />
|
||||||
<Compile Include="Datastore\Migration\083_additonal_blacklist_columns.cs" />
|
<Compile Include="Datastore\Migration\083_additonal_blacklist_columns.cs" />
|
||||||
<Compile Include="Datastore\Migration\082_add_fanzub_settings.cs" />
|
<Compile Include="Datastore\Migration\082_add_fanzub_settings.cs" />
|
||||||
<Compile Include="Datastore\Migration\087_pushbullet_devices_channels_list.cs" />
|
<Compile Include="Datastore\Migration\088_pushbullet_devices_channels_list.cs" />
|
||||||
<Compile Include="Datastore\Migration\Framework\MigrationContext.cs" />
|
<Compile Include="Datastore\Migration\Framework\MigrationContext.cs" />
|
||||||
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />
|
<Compile Include="Datastore\Migration\Framework\MigrationController.cs" />
|
||||||
<Compile Include="Datastore\Migration\Framework\MigrationDbFactory.cs" />
|
<Compile Include="Datastore\Migration\Framework\MigrationDbFactory.cs" />
|
||||||
|
|
Loading…
Reference in New Issue