mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Port Height Sliders (#458)
This commit is contained in:
1372
Content.Server.Database/Migrations/Postgres/20240127102028_Height.Designer.cs
generated
Normal file
1372
Content.Server.Database/Migrations/Postgres/20240127102028_Height.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
1304
Content.Server.Database/Migrations/Sqlite/20240127102028_Height.Designer.cs
generated
Normal file
1304
Content.Server.Database/Migrations/Sqlite/20240127102028_Height.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
@@ -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!;
|
||||
|
||||
Reference in New Issue
Block a user