mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-23 14:02:54 +01:00
26 lines
753 B
C#
26 lines
753 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace SieveTests.Migrations
|
|
{
|
|
public partial class AddDateLastViewedColumn : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
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");
|
|
}
|
|
}
|
|
}
|