You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20211123150542_ChangedIdFromGuidToInt.cs 1006B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace BlackRock.Reporting.API.Migrations
  5. {
  6. public partial class ChangedIdFromGuidToInt : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AlterColumn<int>(
  11. name: "Id",
  12. table: "Users",
  13. type: "INTEGER",
  14. nullable: false,
  15. oldClrType: typeof(Guid),
  16. oldType: "TEXT")
  17. .Annotation("Sqlite:Autoincrement", true);
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AlterColumn<Guid>(
  22. name: "Id",
  23. table: "Users",
  24. type: "TEXT",
  25. nullable: false,
  26. oldClrType: typeof(int),
  27. oldType: "INTEGER")
  28. .OldAnnotation("Sqlite:Autoincrement", true);
  29. }
  30. }
  31. }