12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class altrTaskHistory : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 5L);
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 1L,
- column: "NameEn",
- value: "To Do");
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 2L,
- column: "NameEn",
- value: "In progress");
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 3L,
- columns: new[] { "NameAr", "NameEn" },
- values: new object[] { "تحتاج مراجعة", "Need Review" });
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 4L,
- column: "NameEn",
- value: "Done");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 1L,
- column: "NameEn",
- value: "New");
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 2L,
- column: "NameEn",
- value: "Under progress");
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 3L,
- columns: new[] { "NameAr", "NameEn" },
- values: new object[] { "أغلقت", "Closed" });
- migrationBuilder.UpdateData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 4L,
- column: "NameEn",
- value: "Completed");
- migrationBuilder.InsertData(
- table: "UserTaskStatuses",
- columns: new[] { "Id", "NameAr", "NameEn" },
- values: new object[] { 5L, "مؤجلة", "Delayed" });
- }
- }
- }
|