using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GameList.Data.Migrations { /// public partial class LimitPlayerNameLengths : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Username", table: "Players", type: "TEXT", maxLength: 24, nullable: false, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "NormalizedUsername", table: "Players", type: "TEXT", maxLength: 24, nullable: false, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 64); migrationBuilder.AlterColumn( name: "DisplayName", table: "Players", type: "TEXT", maxLength: 16, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 64, oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Username", table: "Players", type: "TEXT", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 24); migrationBuilder.AlterColumn( name: "NormalizedUsername", table: "Players", type: "TEXT", maxLength: 64, nullable: false, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 24); migrationBuilder.AlterColumn( name: "DisplayName", table: "Players", type: "TEXT", maxLength: 64, nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 16, oldNullable: true); } } }