API
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.

20210420082718_CommunicationSystem1.cs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace UnivateProperties_API.Migrations
  3. {
  4. public partial class CommunicationSystem1 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropPrimaryKey(
  9. name: "PK_MailModel",
  10. table: "MailModel");
  11. migrationBuilder.RenameTable(
  12. name: "MailModel",
  13. newName: "CommunicationLog");
  14. migrationBuilder.AddColumn<string>(
  15. name: "ComType",
  16. table: "CommunicationLog",
  17. nullable: true);
  18. migrationBuilder.AddPrimaryKey(
  19. name: "PK_CommunicationLog",
  20. table: "CommunicationLog",
  21. column: "Id");
  22. }
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.DropPrimaryKey(
  26. name: "PK_CommunicationLog",
  27. table: "CommunicationLog");
  28. migrationBuilder.DropColumn(
  29. name: "ComType",
  30. table: "CommunicationLog");
  31. migrationBuilder.RenameTable(
  32. name: "CommunicationLog",
  33. newName: "MailModel");
  34. migrationBuilder.AddPrimaryKey(
  35. name: "PK_MailModel",
  36. table: "MailModel",
  37. column: "Id");
  38. }
  39. }
  40. }