Files
Radicade/Server/Migrations/20261008120000_AddWeeklyChallenges.cs
T
2026-10-16 23:33:13 -07:00

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");
}