using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace API.Migrations.Actions
{
///
public partial class Actions : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Actions",
columns: table => new
{
Key = table.Column(type: "character varying(64)", maxLength: 64, nullable: false),
Action = table.Column(type: "character varying(128)", maxLength: 128, nullable: false),
PerformedAt = table.Column(type: "timestamp with time zone", nullable: false),
ChapterId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true),
MangaId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true),
Filename = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
From = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true),
To = table.Column(type: "character varying(2048)", maxLength: 2048, nullable: true),
FileLibraryId = table.Column(type: "character varying(64)", maxLength: 64, nullable: true),
MetadataFetcher = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Actions", x => x.Key);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Actions");
}
}
}