20170927073229_UpdateBundle1.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations
  5. {
  6. public partial class UpdateBundle1 : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AddColumn<string>(
  11. name: "Advice",
  12. table: "Bundle",
  13. type: "longtext",
  14. nullable: true);
  15. migrationBuilder.AddColumn<string>(
  16. name: "County_id",
  17. table: "Bundle",
  18. type: "longtext",
  19. nullable: true);
  20. migrationBuilder.AddColumn<int>(
  21. name: "IsPublic",
  22. table: "Bundle",
  23. type: "int",
  24. nullable: false,
  25. defaultValue: 0);
  26. migrationBuilder.AddColumn<string>(
  27. name: "Key",
  28. table: "Bundle",
  29. type: "longtext",
  30. nullable: true);
  31. migrationBuilder.AddColumn<string>(
  32. name: "Mobile",
  33. table: "Bundle",
  34. type: "longtext",
  35. nullable: true);
  36. migrationBuilder.AddColumn<string>(
  37. name: "Name",
  38. table: "Bundle",
  39. type: "longtext",
  40. nullable: true);
  41. migrationBuilder.AddColumn<string>(
  42. name: "SearchCode",
  43. table: "Bundle",
  44. type: "longtext",
  45. nullable: true);
  46. migrationBuilder.AddColumn<string>(
  47. name: "Title",
  48. table: "Bundle",
  49. type: "longtext",
  50. nullable: true);
  51. migrationBuilder.AddColumn<int>(
  52. name: "Type",
  53. table: "Bundle",
  54. type: "int",
  55. nullable: false,
  56. defaultValue: 0);
  57. migrationBuilder.AddColumn<string>(
  58. name: "Unit_id",
  59. table: "Bundle",
  60. type: "longtext",
  61. nullable: true);
  62. }
  63. protected override void Down(MigrationBuilder migrationBuilder)
  64. {
  65. migrationBuilder.DropColumn(
  66. name: "Advice",
  67. table: "Bundle");
  68. migrationBuilder.DropColumn(
  69. name: "County_id",
  70. table: "Bundle");
  71. migrationBuilder.DropColumn(
  72. name: "IsPublic",
  73. table: "Bundle");
  74. migrationBuilder.DropColumn(
  75. name: "Key",
  76. table: "Bundle");
  77. migrationBuilder.DropColumn(
  78. name: "Mobile",
  79. table: "Bundle");
  80. migrationBuilder.DropColumn(
  81. name: "Name",
  82. table: "Bundle");
  83. migrationBuilder.DropColumn(
  84. name: "SearchCode",
  85. table: "Bundle");
  86. migrationBuilder.DropColumn(
  87. name: "Title",
  88. table: "Bundle");
  89. migrationBuilder.DropColumn(
  90. name: "Type",
  91. table: "Bundle");
  92. migrationBuilder.DropColumn(
  93. name: "Unit_id",
  94. table: "Bundle");
  95. }
  96. }
  97. }