Kavita/API/Data/Migrations/20251026234845_LibraryDefaultLanguageCustomKeyBinds.cs
Fesaa 2c6eddfebb
Custom keybinds, Default language per Library, and bugfixes (#4162)
Co-authored-by: Joseph Milazzo <josephmajora@gmail.com>
2025-11-01 07:56:00 -07:00

41 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace API.Data.Migrations
{
/// <inheritdoc />
public partial class LibraryDefaultLanguageCustomKeyBinds : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "DefaultLanguage",
table: "Library",
type: "TEXT",
nullable: true,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "CustomKeyBinds",
table: "AppUserPreferences",
type: "TEXT",
nullable: true,
defaultValue: "{}");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DefaultLanguage",
table: "Library");
migrationBuilder.DropColumn(
name: "CustomKeyBinds",
table: "AppUserPreferences");
}
}
}