mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 15:38:45 -07:00
d471b418b9
Targets Rec Room 2020.03.10 client (also serves 2020.03.06).
Re-import after adding:
- DorkNet.ClientMod/dorknet-clientmod.json.template — config schema
the launcher's manifest-driven patcher renders into UserData/.
- tools/build-patcher-zip.ps1 — produces dorknet-clientpatch-{key}.zip
for v1-march-* Release uploads.
- .github/workflows/release.yml — on tag push publishes both
dorknet-server-march_2020_03_10-win-x64.zip and
dorknet-clientpatch-march_2020_03_10.zip as Release assets.
Same scrub rules as december; tools/build-patcher-zip.ps1 added to
the maintainer-side allow-list so it survives.
109 lines
4.5 KiB
C#
109 lines
4.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DorkNet.Server.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Phase13EventsAndObjectives : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "ObjectiveProgress",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<long>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
PlayerId = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Key = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
IsCompleted = table.Column<bool>(type: "INTEGER", nullable: false),
|
|
ClearedAt = table.Column<DateTime>(type: "TEXT", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_ObjectiveProgress", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "PlayerEventResponses",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<long>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
EventId = table.Column<long>(type: "INTEGER", nullable: false),
|
|
PlayerId = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Response = table.Column<int>(type: "INTEGER", nullable: false),
|
|
CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PlayerEventResponses", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "PlayerEvents",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<long>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
CreatorPlayerId = table.Column<long>(type: "INTEGER", nullable: false),
|
|
RoomId = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Title = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
Description = table.Column<string>(type: "TEXT", maxLength: 2000, nullable: false),
|
|
StartsAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
EndsAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
Capacity = table.Column<int>(type: "INTEGER", nullable: false),
|
|
CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
UpdatedAt = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PlayerEvents", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_ObjectiveProgress_PlayerId_Key",
|
|
table: "ObjectiveProgress",
|
|
columns: new[] { "PlayerId", "Key" },
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayerEventResponses_EventId_PlayerId",
|
|
table: "PlayerEventResponses",
|
|
columns: new[] { "EventId", "PlayerId" },
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayerEventResponses_PlayerId",
|
|
table: "PlayerEventResponses",
|
|
column: "PlayerId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayerEvents_CreatorPlayerId",
|
|
table: "PlayerEvents",
|
|
column: "CreatorPlayerId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_PlayerEvents_StartsAt",
|
|
table: "PlayerEvents",
|
|
column: "StartsAt");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "ObjectiveProgress");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "PlayerEventResponses");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "PlayerEvents");
|
|
}
|
|
}
|
|
}
|