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.
21 lines
727 B
21 lines
727 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(52)]
|
|
public class add_columns_for_anime : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
// Support XEM names
|
|
Alter.Table("SceneMappings").AddColumn("Type").AsString().Nullable();
|
|
Execute.Sql("DELETE FROM SceneMappings");
|
|
|
|
// Add AnimeEpisodeFormat (set to Standard Episode format for now)
|
|
Alter.Table("NamingConfig").AddColumn("AnimeEpisodeFormat").AsString().Nullable();
|
|
Execute.Sql("UPDATE NamingConfig SET AnimeEpisodeFormat = StandardEpisodeFormat");
|
|
}
|
|
}
|
|
}
|