IW4M-Admin/Data/Migrations/Sqlite/20180911190823_AddEFAliasNameMaxLength24.cs
RaidMax c5375b661b huge commit for advanced stats feature.
broke data out into its own library.
may be breaking changes with existing plugins
2021-03-22 11:09:25 -05:00

26 lines
780 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace Data.Migrations.Sqlite
{
public partial class AddEFAliasNameMaxLength24 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
// hack: we can't alter the column on SQLite, but we need max length limit for the Index in MySQL etc
if (migrationBuilder.ActiveProvider != "Microsoft.EntityFrameworkCore.Sqlite")
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "EFAlias",
maxLength: 24,
nullable: false);
}
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}