mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-20 23:17:43 +03:00
* Check for flavor text equality in profile. * Fix some characters being deleted from flavor text Sometimes the last few characters of the flavor text would get deleted. This fixes this issue. (cherry picked from commit 9f1d95e3353493f28d579b562de348a322312885) # Description This PR fixes some database issues present in The Wizmerge. # Changelog No changelog, this isn't player facing. --------- Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com> Co-authored-by: Evgencheg <7064926@gmail.com> Co-authored-by: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Co-authored-by: dffdff2423 <dffdff2423@gmail.com>
43 lines
1.7 KiB
C#
43 lines
1.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace Content.Server.Database.Migrations.Postgres
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class BanTemplate : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "ban_template",
|
|
columns: table => new
|
|
{
|
|
ban_template_id = table.Column<int>(type: "integer", nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
title = table.Column<string>(type: "text", nullable: false),
|
|
length = table.Column<TimeSpan>(type: "interval", nullable: false),
|
|
reason = table.Column<string>(type: "text", nullable: false),
|
|
exempt_flags = table.Column<int>(type: "integer", nullable: false),
|
|
severity = table.Column<int>(type: "integer", nullable: false),
|
|
auto_delete = table.Column<bool>(type: "boolean", nullable: false),
|
|
hidden = table.Column<bool>(type: "boolean", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_ban_template", x => x.ban_template_id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "ban_template");
|
|
}
|
|
}
|
|
}
|