divan/RMuseum/Migrations/20210107093226_LongRunningJobs.cs
Hamid Reza Mohammadi 4f60edda8d long running jobs api
2021-01-07 13:21:21 +03:30

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");
}
}
}