mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-10 12:05:51 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Kavita.Database.Migrations
|
|
{
|
|
public partial class BookReaderPreferences : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "HideReadOnDetails",
|
|
table: "AppUserPreferences",
|
|
newName: "BookReaderMargin");
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "BookReaderDarkMode",
|
|
table: "AppUserPreferences",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BookReaderFontFamily",
|
|
table: "AppUserPreferences",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
defaultValue: "default");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "BookReaderLineSpacing",
|
|
table: "AppUserPreferences",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 100);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "BookReaderDarkMode",
|
|
table: "AppUserPreferences");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BookReaderFontFamily",
|
|
table: "AppUserPreferences");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BookReaderLineSpacing",
|
|
table: "AppUserPreferences");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "BookReaderMargin",
|
|
table: "AppUserPreferences",
|
|
newName: "HideReadOnDetails");
|
|
}
|
|
}
|
|
}
|