using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LightlessSyncServer.Migrations { /// public partial class AddUserVanityFields : 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, defaultValue: ""); migrationBuilder.AddColumn( name: "text_glow_color_hex", table: "users", type: "character varying(9)", maxLength: 9, nullable: true, defaultValue: ""); } /// 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"); } } }