mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RadicadeServer.Migrations
|
|
{
|
|
|
|
public partial class fml1 : Migration
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "CheeredAt",
|
|
table: "RoomInteractions",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "FavoritedAt",
|
|
table: "RoomInteractions",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "LastVisted",
|
|
table: "RoomInteractions",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
}
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CheeredAt",
|
|
table: "RoomInteractions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FavoritedAt",
|
|
table: "RoomInteractions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LastVisted",
|
|
table: "RoomInteractions");
|
|
}
|
|
}
|
|
}
|