using System; using System.Collections.Generic; using Foxnouns.Backend.Database.Models; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Foxnouns.Backend.Database.Migrations { /// <inheritdoc /> [DbContext(typeof(DatabaseContext))] [Migration("20240821210355_AddCustomPreferences")] public partial class AddCustomPreferences : Migration { /// <inheritdoc /> protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<Dictionary<Guid, User.CustomPreference>>( name: "custom_preferences", table: "users", type: "jsonb", nullable: false, defaultValueSql: "'{}'" ); } /// <inheritdoc /> protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn(name: "custom_preferences", table: "users"); } } }