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.

20191022055635_AddedWeekProps.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace UnivateProperties_API.Migrations
  3. {
  4. public partial class AddedWeekProps : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<double>(
  9. name: "AgentCommision",
  10. table: "Weeks",
  11. nullable: false,
  12. defaultValue: 0.0);
  13. migrationBuilder.AddColumn<string>(
  14. name: "Mandate",
  15. table: "Weeks",
  16. nullable: true);
  17. migrationBuilder.AddColumn<string>(
  18. name: "OtherResortName",
  19. table: "Weeks",
  20. nullable: true);
  21. }
  22. protected override void Down(MigrationBuilder migrationBuilder)
  23. {
  24. migrationBuilder.DropColumn(
  25. name: "AgentCommision",
  26. table: "Weeks");
  27. migrationBuilder.DropColumn(
  28. name: "Mandate",
  29. table: "Weeks");
  30. migrationBuilder.DropColumn(
  31. name: "OtherResortName",
  32. table: "Weeks");
  33. }
  34. }
  35. }