Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20221116181306_DefaultDisabledUser.cs 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Diligent.WebAPI.Data.Migrations
  4. {
  5. public partial class DefaultDisabledUser : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AlterColumn<bool>(
  10. name: "IsEnabled",
  11. table: "AspNetUsers",
  12. type: "bit",
  13. nullable: true,
  14. defaultValue: true,
  15. oldClrType: typeof(bool),
  16. oldType: "bit",
  17. oldDefaultValue: true);
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AlterColumn<bool>(
  22. name: "IsEnabled",
  23. table: "AspNetUsers",
  24. type: "bit",
  25. nullable: false,
  26. defaultValue: true,
  27. oldClrType: typeof(bool),
  28. oldType: "bit",
  29. oldNullable: true,
  30. oldDefaultValue: true);
  31. }
  32. }
  33. }