-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,376 additions
and
57 deletions.
There are no files selected for viewing
721 changes: 721 additions & 0 deletions
721
ReplayBrowser/Data/Migrations/20241111230023_LeaderboardPositionGeneratedAt.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
ReplayBrowser/Data/Migrations/20241111230023_LeaderboardPositionGeneratedAt.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Server.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class LeaderboardPositionGeneratedAt : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<DateTime>( | ||
name: "GeneratedAt", | ||
table: "Leaderboards", | ||
type: "timestamp with time zone", | ||
nullable: false, | ||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "GeneratedAt", | ||
table: "Leaderboards"); | ||
} | ||
} | ||
} |
Oops, something went wrong.