forked from LittleBigRefresh/Refresh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path20260411153651_AddAbilityToDisallowAssets.cs
More file actions
38 lines (35 loc) · 1.34 KB
/
Copy path20260411153651_AddAbilityToDisallowAssets.cs
File metadata and controls
38 lines (35 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Refresh.Database.Migrations
{
/// <inheritdoc />
[DbContext(typeof(GameDatabaseContext))]
[Migration("20260411153651_AddAbilityToDisallowAssets")]
public partial class AddAbilityToDisallowAssets : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DisallowedAssets",
columns: table => new
{
AssetHash = table.Column<string>(type: "text", nullable: false),
AssetType = table.Column<int>(type: "integer", nullable: false),
Reason = table.Column<string>(type: "text", nullable: false),
DisallowedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DisallowedAssets", x => x.AssetHash);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DisallowedAssets");
}
}
}