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>
59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Kavita.Database.Migrations
|
|
{
|
|
public partial class SeriesLastChapterAddedAndReadingListNormalization : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "LastChapterAdded",
|
|
table: "Series",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CoverImage",
|
|
table: "ReadingList",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "CoverImageLocked",
|
|
table: "ReadingList",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NormalizedTitle",
|
|
table: "ReadingList",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "LastChapterAdded",
|
|
table: "Series");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CoverImage",
|
|
table: "ReadingList");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CoverImageLocked",
|
|
table: "ReadingList");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "NormalizedTitle",
|
|
table: "ReadingList");
|
|
}
|
|
}
|
|
}
|