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.

257 lines
9.1 KiB

2 years ago
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Shentun.Peis.Migrations
  4. {
  5. public partial class init20240503003 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AlterColumn<char>(
  10. name: "upload_qztl_flag",
  11. table: "patient_register_exter",
  12. type: "character(1)",
  13. nullable: true,
  14. oldClrType: typeof(char),
  15. oldType: "character(1)");
  16. migrationBuilder.AlterColumn<string>(
  17. name: "remark4",
  18. table: "patient_register_exter",
  19. type: "character varying(100)",
  20. maxLength: 100,
  21. nullable: true,
  22. oldClrType: typeof(string),
  23. oldType: "text",
  24. oldNullable: true);
  25. migrationBuilder.AlterColumn<string>(
  26. name: "remark3",
  27. table: "patient_register_exter",
  28. type: "character varying(100)",
  29. maxLength: 100,
  30. nullable: true,
  31. oldClrType: typeof(string),
  32. oldType: "text",
  33. oldNullable: true);
  34. migrationBuilder.AlterColumn<string>(
  35. name: "remark2",
  36. table: "patient_register_exter",
  37. type: "character varying(100)",
  38. maxLength: 100,
  39. nullable: true,
  40. oldClrType: typeof(string),
  41. oldType: "text",
  42. oldNullable: true);
  43. migrationBuilder.AlterColumn<char>(
  44. name: "qztl_type",
  45. table: "patient_register_exter",
  46. type: "character(1)",
  47. nullable: true,
  48. oldClrType: typeof(char),
  49. oldType: "character(1)");
  50. migrationBuilder.AlterColumn<char>(
  51. name: "qztl_is_wh",
  52. table: "patient_register_exter",
  53. type: "character(1)",
  54. nullable: true,
  55. oldClrType: typeof(char),
  56. oldType: "character(1)");
  57. migrationBuilder.AlterColumn<char>(
  58. name: "qztl_is_main",
  59. table: "patient_register_exter",
  60. type: "character(1)",
  61. nullable: true,
  62. oldClrType: typeof(char),
  63. oldType: "character(1)");
  64. migrationBuilder.AlterColumn<char>(
  65. name: "qztl_is_gt",
  66. table: "patient_register_exter",
  67. type: "character(1)",
  68. nullable: true,
  69. oldClrType: typeof(char),
  70. oldType: "character(1)");
  71. migrationBuilder.AlterColumn<char>(
  72. name: "qztl_is_fj",
  73. table: "patient_register_exter",
  74. type: "character(1)",
  75. nullable: true,
  76. oldClrType: typeof(char),
  77. oldType: "character(1)");
  78. migrationBuilder.AlterColumn<char>(
  79. name: "qztl_is_cy",
  80. table: "patient_register_exter",
  81. type: "character(1)",
  82. nullable: true,
  83. oldClrType: typeof(char),
  84. oldType: "character(1)");
  85. migrationBuilder.AlterColumn<char>(
  86. name: "qztl_is_cw",
  87. table: "patient_register_exter",
  88. type: "character(1)",
  89. nullable: true,
  90. oldClrType: typeof(char),
  91. oldType: "character(1)");
  92. migrationBuilder.AlterColumn<string>(
  93. name: "planuserid",
  94. table: "patient_register_exter",
  95. type: "character varying(20)",
  96. maxLength: 20,
  97. nullable: true,
  98. oldClrType: typeof(string),
  99. oldType: "text",
  100. oldNullable: true);
  101. migrationBuilder.AlterColumn<char>(
  102. name: "is_qztl_import",
  103. table: "patient_register_exter",
  104. type: "character(1)",
  105. nullable: true,
  106. oldClrType: typeof(char),
  107. oldType: "character(1)");
  108. }
  109. protected override void Down(MigrationBuilder migrationBuilder)
  110. {
  111. migrationBuilder.AlterColumn<char>(
  112. name: "upload_qztl_flag",
  113. table: "patient_register_exter",
  114. type: "character(1)",
  115. nullable: false,
  116. defaultValue: '',
  117. oldClrType: typeof(char),
  118. oldType: "character(1)",
  119. oldNullable: true);
  120. migrationBuilder.AlterColumn<string>(
  121. name: "remark4",
  122. table: "patient_register_exter",
  123. type: "text",
  124. nullable: true,
  125. oldClrType: typeof(string),
  126. oldType: "character varying(100)",
  127. oldMaxLength: 100,
  128. oldNullable: true);
  129. migrationBuilder.AlterColumn<string>(
  130. name: "remark3",
  131. table: "patient_register_exter",
  132. type: "text",
  133. nullable: true,
  134. oldClrType: typeof(string),
  135. oldType: "character varying(100)",
  136. oldMaxLength: 100,
  137. oldNullable: true);
  138. migrationBuilder.AlterColumn<string>(
  139. name: "remark2",
  140. table: "patient_register_exter",
  141. type: "text",
  142. nullable: true,
  143. oldClrType: typeof(string),
  144. oldType: "character varying(100)",
  145. oldMaxLength: 100,
  146. oldNullable: true);
  147. migrationBuilder.AlterColumn<char>(
  148. name: "qztl_type",
  149. table: "patient_register_exter",
  150. type: "character(1)",
  151. nullable: false,
  152. defaultValue: '',
  153. oldClrType: typeof(char),
  154. oldType: "character(1)",
  155. oldNullable: true);
  156. migrationBuilder.AlterColumn<char>(
  157. name: "qztl_is_wh",
  158. table: "patient_register_exter",
  159. type: "character(1)",
  160. nullable: false,
  161. defaultValue: '',
  162. oldClrType: typeof(char),
  163. oldType: "character(1)",
  164. oldNullable: true);
  165. migrationBuilder.AlterColumn<char>(
  166. name: "qztl_is_main",
  167. table: "patient_register_exter",
  168. type: "character(1)",
  169. nullable: false,
  170. defaultValue: '',
  171. oldClrType: typeof(char),
  172. oldType: "character(1)",
  173. oldNullable: true);
  174. migrationBuilder.AlterColumn<char>(
  175. name: "qztl_is_gt",
  176. table: "patient_register_exter",
  177. type: "character(1)",
  178. nullable: false,
  179. defaultValue: '',
  180. oldClrType: typeof(char),
  181. oldType: "character(1)",
  182. oldNullable: true);
  183. migrationBuilder.AlterColumn<char>(
  184. name: "qztl_is_fj",
  185. table: "patient_register_exter",
  186. type: "character(1)",
  187. nullable: false,
  188. defaultValue: '',
  189. oldClrType: typeof(char),
  190. oldType: "character(1)",
  191. oldNullable: true);
  192. migrationBuilder.AlterColumn<char>(
  193. name: "qztl_is_cy",
  194. table: "patient_register_exter",
  195. type: "character(1)",
  196. nullable: false,
  197. defaultValue: '',
  198. oldClrType: typeof(char),
  199. oldType: "character(1)",
  200. oldNullable: true);
  201. migrationBuilder.AlterColumn<char>(
  202. name: "qztl_is_cw",
  203. table: "patient_register_exter",
  204. type: "character(1)",
  205. nullable: false,
  206. defaultValue: '',
  207. oldClrType: typeof(char),
  208. oldType: "character(1)",
  209. oldNullable: true);
  210. migrationBuilder.AlterColumn<string>(
  211. name: "planuserid",
  212. table: "patient_register_exter",
  213. type: "text",
  214. nullable: true,
  215. oldClrType: typeof(string),
  216. oldType: "character varying(20)",
  217. oldMaxLength: 20,
  218. oldNullable: true);
  219. migrationBuilder.AlterColumn<char>(
  220. name: "is_qztl_import",
  221. table: "patient_register_exter",
  222. type: "character(1)",
  223. nullable: false,
  224. defaultValue: '',
  225. oldClrType: typeof(char),
  226. oldType: "character(1)",
  227. oldNullable: true);
  228. }
  229. }
  230. }