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.

20191014135639_PlaceHolder.cs 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class PlaceHolder : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<string>(
  10. name: "BoundToClass",
  11. table: "PlaceHolders",
  12. nullable: true);
  13. migrationBuilder.AddColumn<string>(
  14. name: "BoundToClassDisplay",
  15. table: "PlaceHolders",
  16. nullable: true);
  17. migrationBuilder.AddColumn<DateTime>(
  18. name: "Created",
  19. table: "PlaceHolders",
  20. nullable: false,
  21. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  22. migrationBuilder.AddColumn<bool>(
  23. name: "IsDeleted",
  24. table: "PlaceHolders",
  25. nullable: false,
  26. defaultValue: false);
  27. migrationBuilder.AddColumn<DateTime>(
  28. name: "Modified",
  29. table: "PlaceHolders",
  30. nullable: false,
  31. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  32. migrationBuilder.AddColumn<string>(
  33. name: "ModifiedBy",
  34. table: "PlaceHolders",
  35. nullable: true);
  36. }
  37. protected override void Down(MigrationBuilder migrationBuilder)
  38. {
  39. migrationBuilder.DropColumn(
  40. name: "BoundToClass",
  41. table: "PlaceHolders");
  42. migrationBuilder.DropColumn(
  43. name: "BoundToClassDisplay",
  44. table: "PlaceHolders");
  45. migrationBuilder.DropColumn(
  46. name: "Created",
  47. table: "PlaceHolders");
  48. migrationBuilder.DropColumn(
  49. name: "IsDeleted",
  50. table: "PlaceHolders");
  51. migrationBuilder.DropColumn(
  52. name: "Modified",
  53. table: "PlaceHolders");
  54. migrationBuilder.DropColumn(
  55. name: "ModifiedBy",
  56. table: "PlaceHolders");
  57. }
  58. }
  59. }