mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 03:55:45 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Kavita.Database.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");
|
|
}
|
|
}
|
|
}
|