mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 21:42:38 +01:00
27 lines
787 B
C#
27 lines
787 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|