sonarr-repo-only/NzbDrone.Core/Datastore/Migrations/MigrationExport.cs

33 lines
1.2 KiB
C#
Raw Normal View History

2011-06-15 02:31:41 +00:00
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using MigSharp;
namespace NzbDrone.Core.Datastore.Migrations
{
[MigrationExport]
internal class Migration1 : IMigration
{
public void Up(IDatabase db)
{
db.CreateTable("Series")
.WithPrimaryKeyColumn("SeriesId", DbType.Int32).AsIdentity()
.WithNullableColumn("Title", DbType.String)
.WithNullableColumn("CleanTitle", DbType.String)
.WithNullableColumn("Status", DbType.String)
.WithNullableColumn("Overview", DbType.String)
.WithNullableColumn("AirsDayOfWeek", DbType.Int16)
.WithNullableColumn("AirTimes", DbType.String)
.WithNullableColumn("Language", DbType.String)
.WithNotNullableColumn("Path", DbType.String)
.WithNotNullableColumn("Monitored", DbType.Boolean)
.WithNotNullableColumn("QualityProfileId", DbType.Int16)
.WithNotNullableColumn("SeasonFolder", DbType.Boolean)
.WithNullableColumn("LastInfoSync", DbType.DateTime)
.WithNullableColumn("LastDiskSync", DbType.DateTime);
}
}
}