using Microsoft.EntityFrameworkCore.Migrations; namespace Timeline.Migrations { public partial class MakeColumnsInUserNotNull : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "roles", table: "user", nullable: false, oldClrType: typeof(string), oldNullable: true); migrationBuilder.AlterColumn( name: "name", table: "user", nullable: false, oldClrType: typeof(string), oldNullable: true); migrationBuilder.AlterColumn( name: "password", table: "user", nullable: false, oldClrType: typeof(string), oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "roles", table: "user", nullable: true, oldClrType: typeof(string)); migrationBuilder.AlterColumn( name: "name", table: "user", nullable: true, oldClrType: typeof(string)); migrationBuilder.AlterColumn( name: "password", table: "user", nullable: true, oldClrType: typeof(string)); } } }