Add updatetime to rank entries
This commit is contained in:
1117
TOOHUCardAPI/Migrations/20211107044043_updatetime.Designer.cs
generated
Normal file
1117
TOOHUCardAPI/Migrations/20211107044043_updatetime.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
25
TOOHUCardAPI/Migrations/20211107044043_updatetime.cs
Normal file
25
TOOHUCardAPI/Migrations/20211107044043_updatetime.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user