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.

20230112133613_ApplicantUpdate.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Diligent.WebAPI.Data.Migrations
  4. {
  5. public partial class ApplicantUpdate : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<string>(
  10. name: "Gender",
  11. table: "Applicants",
  12. type: "nvarchar(max)",
  13. nullable: false,
  14. defaultValue: "");
  15. migrationBuilder.AddColumn<string>(
  16. name: "ProfessionalQualification",
  17. table: "Applicants",
  18. type: "nvarchar(128)",
  19. maxLength: 128,
  20. nullable: false,
  21. defaultValue: "");
  22. }
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.DropColumn(
  26. name: "Gender",
  27. table: "Applicants");
  28. migrationBuilder.DropColumn(
  29. name: "ProfessionalQualification",
  30. table: "Applicants");
  31. }
  32. }
  33. }