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.
24 lines
773 B
24 lines
773 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(6)]
|
|
public class add_index_to_log_time : NzbDroneMigrationBase
|
|
{
|
|
protected override void LogDbUpgrade()
|
|
{
|
|
Delete.Table("Logs");
|
|
|
|
Create.TableForModel("Logs")
|
|
.WithColumn("Message").AsString()
|
|
.WithColumn("Time").AsDateTime().Indexed()
|
|
.WithColumn("Logger").AsString()
|
|
.WithColumn("Method").AsString().Nullable()
|
|
.WithColumn("Exception").AsString().Nullable()
|
|
.WithColumn("ExceptionType").AsString().Nullable()
|
|
.WithColumn("Level").AsString();
|
|
}
|
|
}
|
|
}
|