fish-station/Content.Server.Database/Migrations/Postgres/20250910000000_GradientFields.cs

117 lines
3.7 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Content.Server.Database.Migrations.Postgres
{
/// <inheritdoc />
public partial class GradientFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "hair_gradient_enabled",
table: "profile",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "hair_gradient_secondary_color",
table: "profile",
type: "text",
nullable: false,
defaultValue: "#FFFFFF");
migrationBuilder.AddColumn<int>(
name: "hair_gradient_direction",
table: "profile",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "facial_hair_gradient_enabled",
table: "profile",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "facial_hair_gradient_secondary_color",
table: "profile",
type: "text",
nullable: false,
defaultValue: "#FFFFFF");
migrationBuilder.AddColumn<int>(
name: "facial_hair_gradient_direction",
table: "profile",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "all_markings_gradient_enabled",
table: "profile",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "all_markings_gradient_secondary_color",
table: "profile",
type: "text",
nullable: false,
defaultValue: "#FFFFFF");
migrationBuilder.AddColumn<int>(
name: "all_markings_gradient_direction",
table: "profile",
type: "integer",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "hair_gradient_enabled",
table: "profile");
migrationBuilder.DropColumn(
name: "hair_gradient_secondary_color",
table: "profile");
migrationBuilder.DropColumn(
name: "hair_gradient_direction",
table: "profile");
migrationBuilder.DropColumn(
name: "facial_hair_gradient_enabled",
table: "profile");
migrationBuilder.DropColumn(
name: "facial_hair_gradient_secondary_color",
table: "profile");
migrationBuilder.DropColumn(
name: "facial_hair_gradient_direction",
table: "profile");
migrationBuilder.DropColumn(
name: "all_markings_gradient_enabled",
table: "profile");
migrationBuilder.DropColumn(
name: "all_markings_gradient_secondary_color",
table: "profile");
migrationBuilder.DropColumn(
name: "all_markings_gradient_direction",
table: "profile");
}
}
}