API
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

20200909075339_PropertiesMoved.cs 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace UnivateProperties_API.Migrations
  3. {
  4. public partial class PropertiesMoved : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "HowMarried",
  10. table: "Person");
  11. migrationBuilder.DropColumn(
  12. name: "SpouseCellnumber",
  13. table: "Person");
  14. migrationBuilder.DropColumn(
  15. name: "SpouseEmail",
  16. table: "Person");
  17. migrationBuilder.DropColumn(
  18. name: "SpouseName",
  19. table: "Person");
  20. migrationBuilder.DropColumn(
  21. name: "SpouseSurname",
  22. table: "Person");
  23. migrationBuilder.DropColumn(
  24. name: "SpouseTelephone",
  25. table: "Person");
  26. migrationBuilder.DropColumn(
  27. name: "MaritalStatus",
  28. table: "Individuals");
  29. migrationBuilder.DropColumn(
  30. name: "HowMarried",
  31. table: "Agents");
  32. migrationBuilder.DropColumn(
  33. name: "SpouseCellnumber",
  34. table: "Agents");
  35. migrationBuilder.DropColumn(
  36. name: "SpouseEmail",
  37. table: "Agents");
  38. migrationBuilder.DropColumn(
  39. name: "SpouseName",
  40. table: "Agents");
  41. migrationBuilder.DropColumn(
  42. name: "SpouseSurname",
  43. table: "Agents");
  44. migrationBuilder.DropColumn(
  45. name: "SpouseTelephone",
  46. table: "Agents");
  47. }
  48. protected override void Down(MigrationBuilder migrationBuilder)
  49. {
  50. migrationBuilder.AddColumn<int>(
  51. name: "HowMarried",
  52. table: "Person",
  53. nullable: false,
  54. defaultValue: 0);
  55. migrationBuilder.AddColumn<string>(
  56. name: "SpouseCellnumber",
  57. table: "Person",
  58. nullable: true);
  59. migrationBuilder.AddColumn<string>(
  60. name: "SpouseEmail",
  61. table: "Person",
  62. nullable: true);
  63. migrationBuilder.AddColumn<string>(
  64. name: "SpouseName",
  65. table: "Person",
  66. nullable: true);
  67. migrationBuilder.AddColumn<string>(
  68. name: "SpouseSurname",
  69. table: "Person",
  70. nullable: true);
  71. migrationBuilder.AddColumn<string>(
  72. name: "SpouseTelephone",
  73. table: "Person",
  74. nullable: true);
  75. migrationBuilder.AddColumn<string>(
  76. name: "MaritalStatus",
  77. table: "Individuals",
  78. nullable: true);
  79. migrationBuilder.AddColumn<int>(
  80. name: "HowMarried",
  81. table: "Agents",
  82. nullable: false,
  83. defaultValue: 0);
  84. migrationBuilder.AddColumn<string>(
  85. name: "SpouseCellnumber",
  86. table: "Agents",
  87. nullable: true);
  88. migrationBuilder.AddColumn<string>(
  89. name: "SpouseEmail",
  90. table: "Agents",
  91. nullable: true);
  92. migrationBuilder.AddColumn<string>(
  93. name: "SpouseName",
  94. table: "Agents",
  95. nullable: true);
  96. migrationBuilder.AddColumn<string>(
  97. name: "SpouseSurname",
  98. table: "Agents",
  99. nullable: true);
  100. migrationBuilder.AddColumn<string>(
  101. name: "SpouseTelephone",
  102. table: "Agents",
  103. nullable: true);
  104. }
  105. }
  106. }