41 lines
1.6 KiB
C#
41 lines
1.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
|
|
|
namespace PARR.DAL.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class TblStatus : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.InsertData(
|
|
table: "JobStatuses",
|
|
columns: new[] { "Id", "DateCreated", "DateModified", "Description", "Name" },
|
|
values: new object[,]
|
|
{
|
|
{ new Guid("7b945eb6-d885-4570-aff5-8866f1f75ff2"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Задание выполнено", "finished" },
|
|
{ new Guid("edef6dc3-adad-4c77-8ad1-63bb9052355a"), new DateTimeOffset(new DateTime(2023, 5, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), null, "Задание запущено", "started" }
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "JobStatuses",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("7b945eb6-d885-4570-aff5-8866f1f75ff2"));
|
|
|
|
migrationBuilder.DeleteData(
|
|
table: "JobStatuses",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("edef6dc3-adad-4c77-8ad1-63bb9052355a"));
|
|
}
|
|
}
|
|
}
|