20241103150423_altrRoleBusiness.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace MTWorkHR.Infrastructure.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class altrRoleBusiness : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.InsertData(
  13. table: "AspNetRoles",
  14. columns: new[] { "Id", "ConcurrencyStamp", "CreateDate", "CreateUser", "DeleteUserId", "IsAdmin", "IsDeleted", "Name", "NormalizedName", "UpdateDate", "UpdateUser" },
  15. values: new object[] { "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, false, false, "Business", "BUSINESS", null, null });
  16. }
  17. /// <inheritdoc />
  18. protected override void Down(MigrationBuilder migrationBuilder)
  19. {
  20. migrationBuilder.DeleteData(
  21. table: "AspNetRoles",
  22. keyColumn: "Id",
  23. keyValue: "BS5B3B92-2311-48F8-9DEC-F9FAEF1F2110");
  24. }
  25. }
  26. }