20240611104022_altrTeamUser.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace MTWorkHR.Infrastructure.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class altrTeamUser : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.AddColumn<string>(
  13. name: "AssignedUserName",
  14. table: "TeamUser",
  15. type: "nvarchar(max)",
  16. nullable: false,
  17. defaultValue: "");
  18. migrationBuilder.InsertData(
  19. table: "AspNetRoles",
  20. columns: new[] { "Id", "ConcurrencyStamp", "CreateDate", "CreateUser", "DeleteUserId", "IsAdmin", "IsDeleted", "Name", "NormalizedName", "UpdateDate", "UpdateUser" },
  21. values: new object[] { "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, false, false, "Contractor", "CONTRACTOR", null, null });
  22. migrationBuilder.UpdateData(
  23. table: "AttachmentTypes",
  24. keyColumn: "Id",
  25. keyValue: 6L,
  26. column: "NameAr",
  27. value: "التسجيل التجارى");
  28. }
  29. /// <inheritdoc />
  30. protected override void Down(MigrationBuilder migrationBuilder)
  31. {
  32. migrationBuilder.DeleteData(
  33. table: "AspNetRoles",
  34. keyColumn: "Id",
  35. keyValue: "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R");
  36. migrationBuilder.DropColumn(
  37. name: "AssignedUserName",
  38. table: "TeamUser");
  39. migrationBuilder.UpdateData(
  40. table: "AttachmentTypes",
  41. keyColumn: "Id",
  42. keyValue: 6L,
  43. column: "NameAr",
  44. value: "شهادة الاحتراف");
  45. }
  46. }
  47. }