Port Height Sliders (#458)

This commit is contained in:
VMSolidus
2024-06-27 13:46:50 -04:00
committed by GitHub
parent 3971ec31a4
commit efeb93b74e
30 changed files with 3279 additions and 15 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Content.Server.Database.Migrations.Postgres
{
/// <inheritdoc />
public partial class HeightWidth : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<float>(
name: "height",
table: "profile",
type: "REAL",
nullable: false,
defaultValue: 1f);
migrationBuilder.AddColumn<float>(
name: "width",
table: "profile",
type: "REAL",
nullable: false,
defaultValue: 1f);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "height",
table: "profile");
migrationBuilder.DropColumn(
name: "width",
table: "profile");
}
}
}

View File

@@ -812,6 +812,16 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("hair_name");
// Parkstation-HeightSlider Start
b.Property<float>("Height")
.HasColumnType("real")
.HasColumnName("height");
b.Property<float>("Width")
.HasColumnType("real")
.HasColumnName("width");
// Parkstation-HeightSlider End
b.Property<JsonDocument>("Markings")
.HasColumnType("jsonb")
.HasColumnName("markings");

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Content.Server.Database.Migrations.Sqlite
{
/// <inheritdoc />
public partial class HeightWidth : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<float>(
name: "height",
table: "profile",
type: "REAL",
nullable: false,
defaultValue: 1f);
migrationBuilder.AddColumn<float>(
name: "width",
table: "profile",
type: "REAL",
nullable: false,
defaultValue: 1f);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "height",
table: "profile");
migrationBuilder.DropColumn(
name: "width",
table: "profile");
}
}
}

View File

@@ -763,6 +763,16 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("hair_name");
// Parkstation-HeightSlider Start
b.Property<float>("Height")
.HasColumnType("REAL")
.HasColumnName("height");
b.Property<float>("Width")
.HasColumnType("REAL")
.HasColumnName("width");
// Parkstation-HeightSlider End
b.Property<byte[]>("Markings")
.HasColumnType("jsonb")
.HasColumnName("markings");

View File

@@ -338,6 +338,8 @@ namespace Content.Server.Database
public string Sex { get; set; } = null!;
public string Gender { get; set; } = null!;
public string Species { get; set; } = null!;
public float Height { get; set; } = 1f;
public float Width { get; set; } = 1f;
[Column(TypeName = "jsonb")] public JsonDocument? Markings { get; set; } = null!;
public string HairName { get; set; } = null!;
public string HairColor { get; set; } = null!;