API

20200915123751_timeshareNewCols.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class timeshareNewCols : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<bool>(
  10. name: "Publish",
  11. table: "Weeks",
  12. nullable: false,
  13. defaultValue: false);
  14. migrationBuilder.AddColumn<DateTime>(
  15. name: "PulbishedDate",
  16. table: "Weeks",
  17. nullable: false,
  18. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  19. migrationBuilder.AddColumn<string>(
  20. name: "WeekStatus",
  21. table: "Weeks",
  22. nullable: true);
  23. }
  24. protected override void Down(MigrationBuilder migrationBuilder)
  25. {
  26. migrationBuilder.DropColumn(
  27. name: "Publish",
  28. table: "Weeks");
  29. migrationBuilder.DropColumn(
  30. name: "PulbishedDate",
  31. table: "Weeks");
  32. migrationBuilder.DropColumn(
  33. name: "WeekStatus",
  34. table: "Weeks");
  35. }
  36. }
  37. }