mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
This commit is contained in:
42
API/Migrations/Actions/20251016005257_Actions.cs
Normal file
42
API/Migrations/Actions/20251016005257_Actions.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace API.Migrations.Actions
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Actions : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Actions",
|
||||
columns: table => new
|
||||
{
|
||||
Key = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false),
|
||||
Action = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
|
||||
PerformedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
ChapterId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||
MangaId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||
Filename = table.Column<string>(type: "character varying(1024)", maxLength: 1024, nullable: true),
|
||||
From = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: true),
|
||||
To = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: true),
|
||||
FileLibraryId = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true),
|
||||
MetadataFetcher = table.Column<string>(type: "character varying(1024)", maxLength: 1024, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Actions", x => x.Key);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Actions");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user