- Remove 16 unused using System; imports from migration files (implicit usings available) - Fix 6 empty catch blocks with proper exception logging - Remove unused import (false positive flagged as wontfix) - Skip test coverage, orphaned, and stale exclude issues as false positives - Add missing namespace to IPersonRepository.cs - Rename IFolderRepository Create/Delete to Insert/Remove for CRUD consistency - Fix ITagRepository.Delete parameter name from 'id' to 'tag' - Add missing IDisposable to IMediaRepository - Rename SettingsExtensions to SettingsExtension for naming consistency - Rename PagedParametersDTO.cs to PagedParametersDto.cs - Add .desloppify/ to .gitignore
42 lines
1.6 KiB
C#
42 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Lactose.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddJobRecords : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "JobRecords",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
ParentJobId = table.Column<Guid>(type: "uuid", nullable: true),
|
|
Name = table.Column<string>(type: "VARCHAR(256)", nullable: false),
|
|
JobType = table.Column<int>(type: "integer", nullable: false),
|
|
Status = table.Column<int>(type: "integer", nullable: false),
|
|
Created = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
|
Started = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
|
|
Finished = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
|
|
Message = table.Column<string>(type: "VARCHAR(2048)", nullable: true),
|
|
Progress = table.Column<float>(type: "real", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_JobRecords", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "JobRecords");
|
|
}
|
|
}
|
|
}
|