mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
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");
|
|
}
|