API
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

20190912055827_SearchLogStuff.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace UnivateProperties_API.Migrations
  3. {
  4. public partial class SearchLogStuff : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "UserID",
  10. table: "SearchLogs");
  11. migrationBuilder.DropColumn(
  12. name: "GCRecord",
  13. table: "Properties");
  14. migrationBuilder.AddColumn<string>(
  15. name: "Type",
  16. table: "SearchLogs",
  17. nullable: true);
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.DropColumn(
  22. name: "Type",
  23. table: "SearchLogs");
  24. migrationBuilder.AddColumn<int>(
  25. name: "UserID",
  26. table: "SearchLogs",
  27. nullable: true);
  28. migrationBuilder.AddColumn<int>(
  29. name: "GCRecord",
  30. table: "Properties",
  31. nullable: true);
  32. }
  33. }
  34. }