mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-04-01 14:54:36 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
43 lines
1.6 KiB
C#
43 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Kavita.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MediaError : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "MediaError",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
Extension = table.Column<string>(type: "TEXT", nullable: true),
|
|
FilePath = table.Column<string>(type: "TEXT", nullable: true),
|
|
Comment = table.Column<string>(type: "TEXT", nullable: true),
|
|
Details = table.Column<string>(type: "TEXT", nullable: true),
|
|
Created = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
LastModified = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
CreatedUtc = table.Column<DateTime>(type: "TEXT", nullable: false),
|
|
LastModifiedUtc = table.Column<DateTime>(type: "TEXT", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_MediaError", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "MediaError");
|
|
}
|
|
}
|
|
}
|