TileBuildChanges

This commit is contained in:
dingo
2026-01-09 07:08:41 -05:00
parent a12c4d5264
commit e803dafaea
9 changed files with 3835 additions and 61 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,53 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class TileBuildChanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SocketConfigJson",
table: "tile_templates",
type: "json",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "socket_names",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(type: "varchar(64)", maxLength: 64, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
UsageCount = table.Column<int>(type: "int", nullable: false),
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_socket_names", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "socket_names");
migrationBuilder.DropColumn(
name: "SocketConfigJson",
table: "tile_templates");
}
}
}
+31
View File
@@ -2278,6 +2278,34 @@ namespace SystemRevivalServer.Migrations
b.ToTable("room_templates");
});
modelBuilder.Entity("DataServer.Data.Entities.SocketName", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)");
b.Property<string>("Description")
.HasMaxLength(256)
.HasColumnType("varchar(256)");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property<int>("UsageCount")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("socket_names");
});
modelBuilder.Entity("DataServer.Data.Entities.TileDefinition", b =>
{
b.Property<int>("Id")
@@ -2471,6 +2499,9 @@ namespace SystemRevivalServer.Migrations
b.Property<int?>("PrimaryTileDefinitionId")
.HasColumnType("int");
b.Property<string>("SocketConfigJson")
.HasColumnType("json");
b.Property<string>("SocketCustom")
.HasMaxLength(128)
.HasColumnType("varchar(128)");