mirror of https://github.com/Sonarr/Sonarr
14 lines
452 B
C#
14 lines
452 B
C#
using FluentMigrator.Builders.Create;
|
|
using FluentMigrator.Builders.Create.Table;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration.Framework
|
|
{
|
|
public static class MigrationExtension
|
|
{
|
|
public static ICreateTableColumnOptionOrWithColumnSyntax TableForModel(this ICreateExpressionRoot expressionRoot, string name)
|
|
{
|
|
return expressionRoot.Table(name).WithColumn("Id").AsInt32().PrimaryKey().Identity();
|
|
}
|
|
|
|
}
|
|
} |