20260323070126_InitIdentity.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.IdentityDb
  4. {
  5. /// <inheritdoc />
  6. public partial class InitIdentity : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "Name",
  13. table: "AspNetUserTokens",
  14. type: "nvarchar(450)",
  15. nullable: false,
  16. oldClrType: typeof(string),
  17. oldType: "nvarchar(128)",
  18. oldMaxLength: 128);
  19. migrationBuilder.AlterColumn<string>(
  20. name: "LoginProvider",
  21. table: "AspNetUserTokens",
  22. type: "nvarchar(450)",
  23. nullable: false,
  24. oldClrType: typeof(string),
  25. oldType: "nvarchar(128)",
  26. oldMaxLength: 128);
  27. migrationBuilder.AlterColumn<string>(
  28. name: "ProviderKey",
  29. table: "AspNetUserLogins",
  30. type: "nvarchar(450)",
  31. nullable: false,
  32. oldClrType: typeof(string),
  33. oldType: "nvarchar(128)",
  34. oldMaxLength: 128);
  35. migrationBuilder.AlterColumn<string>(
  36. name: "LoginProvider",
  37. table: "AspNetUserLogins",
  38. type: "nvarchar(450)",
  39. nullable: false,
  40. oldClrType: typeof(string),
  41. oldType: "nvarchar(128)",
  42. oldMaxLength: 128);
  43. }
  44. /// <inheritdoc />
  45. protected override void Down(MigrationBuilder migrationBuilder)
  46. {
  47. migrationBuilder.AlterColumn<string>(
  48. name: "Name",
  49. table: "AspNetUserTokens",
  50. type: "nvarchar(128)",
  51. maxLength: 128,
  52. nullable: false,
  53. oldClrType: typeof(string),
  54. oldType: "nvarchar(450)");
  55. migrationBuilder.AlterColumn<string>(
  56. name: "LoginProvider",
  57. table: "AspNetUserTokens",
  58. type: "nvarchar(128)",
  59. maxLength: 128,
  60. nullable: false,
  61. oldClrType: typeof(string),
  62. oldType: "nvarchar(450)");
  63. migrationBuilder.AlterColumn<string>(
  64. name: "ProviderKey",
  65. table: "AspNetUserLogins",
  66. type: "nvarchar(128)",
  67. maxLength: 128,
  68. nullable: false,
  69. oldClrType: typeof(string),
  70. oldType: "nvarchar(450)");
  71. migrationBuilder.AlterColumn<string>(
  72. name: "LoginProvider",
  73. table: "AspNetUserLogins",
  74. type: "nvarchar(128)",
  75. maxLength: 128,
  76. nullable: false,
  77. oldClrType: typeof(string),
  78. oldType: "nvarchar(450)");
  79. }
  80. }
  81. }