using System; using Microsoft.EntityFrameworkCore.Migrations; namespace SieveTests.Migrations { public partial class AddDateLastViewedColumn : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DateLastViewed", table: "Posts", type: "datetime", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DateLastViewed", table: "Posts"); } } }