Add updatetime to rank entries

This commit is contained in:
2021-11-07 00:43:38 -04:00
parent 6f591af5ae
commit aa3a2cb4f4
6 changed files with 1160 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace TOOHUCardAPI.Migrations
{
public partial class updatetime : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "UpdateTime",
table: "RankEntries",
type: "timestamp without time zone",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UpdateTime",
table: "RankEntries");
}
}
}

View File

@@ -956,6 +956,9 @@ namespace TOOHUCardAPI.Migrations
b.Property<int>("RankType")
.HasColumnType("integer");
b.Property<DateTime>("UpdateTime")
.HasColumnType("timestamp without time zone");
b.Property<long?>("UserSteamId")
.HasColumnType("bigint");