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.

20221121092834_AddedEnumsForAdAndTechnologies.cs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Diligent.WebAPI.Data.Migrations
  4. {
  5. public partial class AddedEnumsForAdAndTechnologies : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<string>(
  10. name: "TechnologyType",
  11. table: "Technologies",
  12. type: "nvarchar(max)",
  13. nullable: false,
  14. defaultValue: "");
  15. migrationBuilder.AddColumn<string>(
  16. name: "EmploymentType",
  17. table: "Ads",
  18. type: "nvarchar(max)",
  19. nullable: false,
  20. defaultValue: "");
  21. migrationBuilder.AddColumn<string>(
  22. name: "WorkHour",
  23. table: "Ads",
  24. type: "nvarchar(max)",
  25. nullable: false,
  26. defaultValue: "");
  27. }
  28. protected override void Down(MigrationBuilder migrationBuilder)
  29. {
  30. migrationBuilder.DropColumn(
  31. name: "TechnologyType",
  32. table: "Technologies");
  33. migrationBuilder.DropColumn(
  34. name: "EmploymentType",
  35. table: "Ads");
  36. migrationBuilder.DropColumn(
  37. name: "WorkHour",
  38. table: "Ads");
  39. }
  40. }
  41. }