API

20201124064130_nonRegUserSpouse.cs 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace UnivateProperties_API.Migrations
  3. {
  4. public partial class nonRegUserSpouse : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<int>(
  9. name: "HowMarried",
  10. table: "NonRegIndividuals",
  11. nullable: false,
  12. defaultValue: 0);
  13. migrationBuilder.AddColumn<string>(
  14. name: "SpouseCellnumber",
  15. table: "NonRegIndividuals",
  16. nullable: true);
  17. migrationBuilder.AddColumn<string>(
  18. name: "SpouseEmail",
  19. table: "NonRegIndividuals",
  20. nullable: true);
  21. migrationBuilder.AddColumn<string>(
  22. name: "SpouseName",
  23. table: "NonRegIndividuals",
  24. nullable: true);
  25. migrationBuilder.AddColumn<string>(
  26. name: "SpouseSurname",
  27. table: "NonRegIndividuals",
  28. nullable: true);
  29. migrationBuilder.AddColumn<string>(
  30. name: "SpouseTelephone",
  31. table: "NonRegIndividuals",
  32. nullable: true);
  33. }
  34. protected override void Down(MigrationBuilder migrationBuilder)
  35. {
  36. migrationBuilder.DropColumn(
  37. name: "HowMarried",
  38. table: "NonRegIndividuals");
  39. migrationBuilder.DropColumn(
  40. name: "SpouseCellnumber",
  41. table: "NonRegIndividuals");
  42. migrationBuilder.DropColumn(
  43. name: "SpouseEmail",
  44. table: "NonRegIndividuals");
  45. migrationBuilder.DropColumn(
  46. name: "SpouseName",
  47. table: "NonRegIndividuals");
  48. migrationBuilder.DropColumn(
  49. name: "SpouseSurname",
  50. table: "NonRegIndividuals");
  51. migrationBuilder.DropColumn(
  52. name: "SpouseTelephone",
  53. table: "NonRegIndividuals");
  54. }
  55. }
  56. }