Fix BD part 3

This commit is contained in:
Spatison
2025-04-20 00:51:00 +03:00
parent 22be30fd54
commit 0bbba82e8a
6 changed files with 52 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
// <auto-generated />
// <auto-generated />
using System;
using System.Net;
using System.Text.Json;
@@ -15,7 +15,7 @@ using NpgsqlTypes;
namespace Content.Server.Database.Migrations.Postgres
{
[DbContext(typeof(PostgresServerDbContext))]
[Migration("20250419183117_ClownName")]
[Migration("20250419205006_ClownName")]
partial class ClownName
{
/// <inheritdoc />
@@ -842,6 +842,11 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("backpack");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("text")
.HasColumnName("body_type");
b.Property<string>("CharacterName")
.IsRequired()
.HasColumnType("text")
@@ -853,7 +858,7 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnName("clothing");
b.Property<string>("ClownName")
.HasColumnType("text")
.HasColumnType("TEXT")
.HasColumnName("clown_name");
b.Property<string>("CustomSpecieName")
@@ -962,6 +967,11 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("station_ai_name");
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("text")
.HasColumnName("voice");
b.Property<float>("Width")
.HasColumnType("real")
.HasColumnName("width");

View File

@@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
@@ -13,7 +13,7 @@ namespace Content.Server.Database.Migrations.Postgres
migrationBuilder.AddColumn<string>(
name: "clown_name",
table: "profile",
type: "text",
type: "TEXT",
nullable: true);
}

View File

@@ -839,6 +839,11 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("backpack");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("text")
.HasColumnName("body_type");
b.Property<string>("CharacterName")
.IsRequired()
.HasColumnType("text")
@@ -850,7 +855,7 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnName("clothing");
b.Property<string>("ClownName")
.HasColumnType("text")
.HasColumnType("TEXT")
.HasColumnName("clown_name");
b.Property<string>("CustomSpecieName")
@@ -937,18 +942,6 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("sex");
// WD EDIT START
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("text")
.HasColumnName("voice");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("text")
.HasColumnName("body_type");
// WD EDIT END
b.Property<string>("SkinColor")
.IsRequired()
.HasColumnType("text")
@@ -971,6 +964,11 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("text")
.HasColumnName("station_ai_name");
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("text")
.HasColumnName("voice");
b.Property<float>("Width")
.HasColumnType("real")
.HasColumnName("width");

View File

@@ -1,4 +1,4 @@
// <auto-generated />
// <auto-generated />
using System;
using Content.Server.Database;
using Microsoft.EntityFrameworkCore;
@@ -11,9 +11,10 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Content.Server.Database.Migrations.Sqlite
{
[DbContext(typeof(SqliteServerDbContext))]
[Migration("20250419183117_ClownName")]
[Migration("20250419204924_ClownName")]
partial class ClownName
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
@@ -790,6 +791,11 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("backpack");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("body_type");
b.Property<string>("CharacterName")
.IsRequired()
.HasColumnType("TEXT")
@@ -801,7 +807,7 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnName("clothing");
b.Property<string>("ClownName")
.HasColumnType("text")
.HasColumnType("TEXT")
.HasColumnName("clown_name");
b.Property<string>("CustomSpecieName")
@@ -910,6 +916,11 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("station_ai_name");
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("voice");
b.Property<float>("Width")
.HasColumnType("REAL")
.HasColumnName("width");

View File

@@ -1,4 +1,4 @@
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable

View File

@@ -788,6 +788,11 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("backpack");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("body_type");
b.Property<string>("CharacterName")
.IsRequired()
.HasColumnType("TEXT")
@@ -799,7 +804,7 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnName("clothing");
b.Property<string>("ClownName")
.HasColumnType("text")
.HasColumnType("TEXT")
.HasColumnName("clown_name");
b.Property<string>("CustomSpecieName")
@@ -886,18 +891,6 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("sex");
// WD EDIT START
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("voice");
b.Property<string>("BodyType")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("body_type");
// WD EDIT END
b.Property<string>("SkinColor")
.IsRequired()
.HasColumnType("TEXT")
@@ -920,6 +913,11 @@ namespace Content.Server.Database.Migrations.Sqlite
.HasColumnType("TEXT")
.HasColumnName("station_ai_name");
b.Property<string>("Voice")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("voice");
b.Property<float>("Width")
.HasColumnType("REAL")
.HasColumnName("width");