2018-09-11 15:28:37 -04:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
namespace Data.Migrations.Sqlite
|
2018-09-11 15:28:37 -04:00
|
|
|
|
{
|
|
|
|
|
public partial class AddEFAliasNameMaxLength24 : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2018-09-12 20:53:11 -04:00
|
|
|
|
// 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);
|
|
|
|
|
}
|
2018-09-11 15:28:37 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|