You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
958 B
26 lines
958 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(104)]
|
|
public class add_moviefiles_table : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Create.TableForModel("MovieFiles")
|
|
.WithColumn("MovieId").AsInt32()
|
|
.WithColumn("Path").AsString().Unique()
|
|
.WithColumn("Quality").AsString()
|
|
.WithColumn("Size").AsInt64()
|
|
.WithColumn("DateAdded").AsDateTime()
|
|
.WithColumn("SceneName").AsString().Nullable()
|
|
.WithColumn("MediaInfo").AsString().Nullable()
|
|
.WithColumn("ReleaseGroup").AsString().Nullable()
|
|
.WithColumn("RelativePath").AsString().Nullable();
|
|
|
|
Alter.Table("Movies").AddColumn("MovieFileId").AsInt32().WithDefaultValue(0);
|
|
}
|
|
}
|
|
}
|