mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 09:37:12 +00:00
Fixed: Albums not loading after 0.2.0.233
This commit is contained in:
parent
054578fa2d
commit
960330a004
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(10)]
|
||||
public class album_releases_fix : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Delete.Column("Releases").FromTable("Albums");
|
||||
Delete.Column("CurrentRelease").FromTable("Albums");
|
||||
Alter.Table("Albums").AddColumn("Releases").AsString().WithDefaultValue("[]").NotNullable();
|
||||
Alter.Table("Albums").AddColumn("CurrentRelease").AsString().WithDefaultValue("").NotNullable();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue