|
|
@ -5,8 +5,8 @@ using Migrator.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[Migration(20110604)]
|
|
|
|
[Migration(20110622)]
|
|
|
|
public class Migration20110616 : Migration
|
|
|
|
public class Migration20110622 : Migration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public override void Up()
|
|
|
|
public override void Up()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -17,12 +17,12 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
new Column("CleanTitle", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("CleanTitle", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Status", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Status", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Overview", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Overview", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("AirsDayOfWeek", DbType.Int16, ColumnProperty.Null),
|
|
|
|
new Column("AirsDayOfWeek", DbType.Int32, ColumnProperty.Null),
|
|
|
|
new Column("AirTimes", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("AirTimes", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Language", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Language", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Monitored", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Monitored", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("QualityProfileId", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("QualityProfileId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeasonFolder", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("SeasonFolder", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("LastInfoSync", DbType.DateTime, ColumnProperty.Null),
|
|
|
|
new Column("LastInfoSync", DbType.DateTime, ColumnProperty.Null),
|
|
|
|
new Column("LastDiskSync", DbType.DateTime, ColumnProperty.Null)
|
|
|
|
new Column("LastDiskSync", DbType.DateTime, ColumnProperty.Null)
|
|
|
@ -33,8 +33,8 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
new Column("EpisodeId", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("EpisodeId", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("TvDbEpisodeId", DbType.Int32, ColumnProperty.Null),
|
|
|
|
new Column("TvDbEpisodeId", DbType.Int32, ColumnProperty.Null),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeasonNumber", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("SeasonNumber", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("EpisodeNumber", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("EpisodeNumber", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("Title", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Title", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Overview", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Overview", DbType.String, ColumnProperty.Null),
|
|
|
|
new Column("Ignored", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Ignored", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
@ -50,11 +50,11 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Quality", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("Quality", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("Proper", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("Proper", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("Size", DbType.Int64, ColumnProperty.NotNull),
|
|
|
|
new Column("Size", DbType.Int64, ColumnProperty.NotNull),
|
|
|
|
new Column("DateAdded", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("DateAdded", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("SeasonNumber", DbType.Int16, ColumnProperty.NotNull)
|
|
|
|
new Column("SeasonNumber", DbType.Int32, ColumnProperty.NotNull)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -73,25 +73,25 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("History", new[]
|
|
|
|
Database.AddTable("History", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("HistoryId", DbType.Int64, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("HistoryId", DbType.Int64, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("EpisodeId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("EpisodeId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SeriesId", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("NzbTitle", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("NzbTitle", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Date", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("Date", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("Quality", DbType.Int16, ColumnProperty.NotNull),
|
|
|
|
new Column("Quality", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("IsProper", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("IsProper", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Indexer", DbType.String, ColumnProperty.NotNull)
|
|
|
|
new Column("Indexer", DbType.String, ColumnProperty.NotNull)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("RootDirs", new[]
|
|
|
|
Database.AddTable("RootDirs", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull)
|
|
|
|
new Column("Path", DbType.String, ColumnProperty.NotNull)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("ExternalNotificationSettings", new[]
|
|
|
|
Database.AddTable("ExternalNotificationSettings", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Enabled", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Enabled", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("NotifierName", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("NotifierName", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull)
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull)
|
|
|
@ -99,7 +99,7 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("JobSettings", new[]
|
|
|
|
Database.AddTable("JobSettings", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("TypeName", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("TypeName", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
|
|
@ -110,7 +110,7 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("QualityProfiles", new[]
|
|
|
|
Database.AddTable("QualityProfiles", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("QualityProfileId", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("QualityProfileId", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Cutoff", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("Cutoff", DbType.Int32, ColumnProperty.NotNull),
|
|
|
|
new Column("SonicAllowed", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("SonicAllowed", DbType.String, ColumnProperty.NotNull),
|
|
|
@ -118,7 +118,7 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("Logs", new[]
|
|
|
|
Database.AddTable("Logs", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("LogId", DbType.Int64, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("LogId", DbType.Int64, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Message", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Message", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Time", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("Time", DbType.DateTime, ColumnProperty.NotNull),
|
|
|
|
new Column("Logger", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Logger", DbType.String, ColumnProperty.NotNull),
|
|
|
@ -130,7 +130,7 @@ namespace NzbDrone.Core.Datastore.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
Database.AddTable("IndexerSettings", new[]
|
|
|
|
Database.AddTable("IndexerSettings", new[]
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKey),
|
|
|
|
new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("Enable", DbType.Boolean, ColumnProperty.NotNull),
|
|
|
|
new Column("IndexProviderType", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("IndexProviderType", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|
|
|
|
new Column("Name", DbType.String, ColumnProperty.NotNull),
|