20260323070126_InitIdentity.cs 2.7 KB

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