using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LightlessSyncServer.Migrations
{
///
public partial class AddUserVanity : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "has_vanity",
table: "users",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "text_color_hex",
table: "users",
type: "character varying(9)",
maxLength: 9,
nullable: true);
migrationBuilder.AddColumn(
name: "text_glow_color_hex",
table: "users",
type: "character varying(9)",
maxLength: 9,
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "has_vanity",
table: "users");
migrationBuilder.DropColumn(
name: "text_color_hex",
table: "users");
migrationBuilder.DropColumn(
name: "text_glow_color_hex",
table: "users");
}
}
}