mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 23:49:02 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using RadicadeServer.DB;
|
||||
|
||||
namespace RadicadeServer.Migrations;
|
||||
|
||||
[DbContext(typeof(RecDBContext))]
|
||||
[Migration("20261008120000_AddWeeklyChallenges")]
|
||||
public class AddWeeklyChallenges : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.CreateTable(
|
||||
name: "WeeklyChallenges",
|
||||
columns: table => new
|
||||
{
|
||||
PlayerId = table.Column<long>(type: "bigint", nullable: false),
|
||||
ChallengeMapId = table.Column<int>(type: "int", nullable: false),
|
||||
MapJson = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
RewardGiftDropId = table.Column<long>(type: "bigint", nullable: true)
|
||||
},
|
||||
constraints: table => table.PrimaryKey("PK_WeeklyChallenges", x => new { x.PlayerId, x.ChallengeMapId }));
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("WeeklyChallenges");
|
||||
}
|
||||
Reference in New Issue
Block a user