36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace RMuseum.Migrations
|
|
{
|
|
public partial class LongRunningJobs : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "LongRunningJobs",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(nullable: false),
|
|
Name = table.Column<string>(nullable: true),
|
|
Progress = table.Column<double>(nullable: false),
|
|
StartTime = table.Column<DateTime>(nullable: false),
|
|
EndTime = table.Column<DateTime>(nullable: false),
|
|
Step = table.Column<string>(nullable: true),
|
|
Exception = table.Column<string>(nullable: true),
|
|
Succeeded = table.Column<bool>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_LongRunningJobs", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "LongRunningJobs");
|
|
}
|
|
}
|
|
}
|