mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixes issue with History table.
This commit is contained in:
parent
6d23fb1b61
commit
28857e7fac
2 changed files with 16 additions and 2 deletions
|
@ -17,8 +17,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
||||||
.WithColumn("SourceTitle").AsString()
|
.WithColumn("SourceTitle").AsString()
|
||||||
.WithColumn("Date").AsDateTime()
|
.WithColumn("Date").AsDateTime()
|
||||||
.WithColumn("Quality").AsString()
|
.WithColumn("Quality").AsString()
|
||||||
.WithColumn("Data").AsString()
|
.WithColumn("Data").AsString();
|
||||||
.WithColumn("MovieId").AsInt32().WithDefaultValue(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
using FluentMigrator;
|
||||||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
|
{
|
||||||
|
[Migration(105)]
|
||||||
|
public class fix_history_movieId : NzbDroneMigrationBase
|
||||||
|
{
|
||||||
|
protected override void MainDbUpgrade()
|
||||||
|
{
|
||||||
|
Alter.Table("History")
|
||||||
|
.AddColumn("MovieId").AsInt32().WithDefaultValue(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue