12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class addStatusConfig : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.InsertData(
- table: "UserTaskStatuses",
- columns: new[] { "Id", "NameAr", "NameEn" },
- values: new object[,]
- {
- { 1L, "جديدة", "New" },
- { 2L, "قيد العمل", "Under progress" },
- { 3L, "أغلقت", "Closed" },
- { 4L, "تمت", "Completed" },
- { 5L, "مؤجلة", "Delayed" }
- });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 1L);
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 2L);
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 3L);
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 4L);
- migrationBuilder.DeleteData(
- table: "UserTaskStatuses",
- keyColumn: "Id",
- keyValue: 5L);
- }
- }
- }
|