20250115122340_initialUser.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace bitforum.Migrations.User
  4. {
  5. /// <inheritdoc />
  6. public partial class initialUser : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "FullName",
  13. table: "AspNetUsers",
  14. type: "nvarchar(256)",
  15. maxLength: 256,
  16. nullable: true,
  17. oldClrType: typeof(string),
  18. oldType: "nvarchar(max)");
  19. }
  20. /// <inheritdoc />
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.AlterColumn<string>(
  24. name: "FullName",
  25. table: "AspNetUsers",
  26. type: "nvarchar(max)",
  27. nullable: false,
  28. defaultValue: "",
  29. oldClrType: typeof(string),
  30. oldType: "nvarchar(256)",
  31. oldMaxLength: 256,
  32. oldNullable: true);
  33. }
  34. }
  35. }