using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace EntityFrameworkCore.Data.Migrations { /// public partial class AddRestriction : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Name", table: "Teams", type: "TEXT", maxLength: 100, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Name", table: "Teams", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldMaxLength: 100); } } }