20220404090749_2.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class _2 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.DropColumn(
  10. name: "G_BCR_NoRead",
  11. table: "WCS_STATION50");
  12. migrationBuilder.DropColumn(
  13. name: "G_B_Outside",
  14. table: "WCS_STATION50");
  15. migrationBuilder.DropColumn(
  16. name: "G_F_Outside",
  17. table: "WCS_STATION50");
  18. migrationBuilder.DropColumn(
  19. name: "G_GoodsCode",
  20. table: "WCS_STATION50");
  21. migrationBuilder.DropColumn(
  22. name: "G_GoodsEnd",
  23. table: "WCS_STATION50");
  24. migrationBuilder.DropColumn(
  25. name: "G_GoodsError",
  26. table: "WCS_STATION50");
  27. migrationBuilder.DropColumn(
  28. name: "G_GoodsSize",
  29. table: "WCS_STATION50");
  30. migrationBuilder.DropColumn(
  31. name: "G_GoodsStart",
  32. table: "WCS_STATION50");
  33. migrationBuilder.DropColumn(
  34. name: "G_GoodsType",
  35. table: "WCS_STATION50");
  36. migrationBuilder.DropColumn(
  37. name: "G_H_Outside",
  38. table: "WCS_STATION50");
  39. migrationBuilder.DropColumn(
  40. name: "G_L_Outside",
  41. table: "WCS_STATION50");
  42. migrationBuilder.DropColumn(
  43. name: "G_Notask",
  44. table: "WCS_STATION50");
  45. migrationBuilder.DropColumn(
  46. name: "G_Overload",
  47. table: "WCS_STATION50");
  48. migrationBuilder.DropColumn(
  49. name: "G_PhStatus",
  50. table: "WCS_STATION50");
  51. migrationBuilder.DropColumn(
  52. name: "G_R_Outside",
  53. table: "WCS_STATION50");
  54. migrationBuilder.DropColumn(
  55. name: "G_Request",
  56. table: "WCS_STATION50");
  57. migrationBuilder.DropColumn(
  58. name: "G_Station_Ready",
  59. table: "WCS_STATION50");
  60. migrationBuilder.DropColumn(
  61. name: "S_AGV_Get_OK",
  62. table: "WCS_STATION50");
  63. migrationBuilder.DropColumn(
  64. name: "S_AGV_Put_OK",
  65. table: "WCS_STATION50");
  66. migrationBuilder.DropColumn(
  67. name: "S_Confirm",
  68. table: "WCS_STATION50");
  69. migrationBuilder.DropColumn(
  70. name: "S_TaskDelete",
  71. table: "WCS_STATION50");
  72. migrationBuilder.RenameColumn(
  73. name: "S_TaskId",
  74. table: "WCS_STATION50",
  75. newName: "Tasknum");
  76. migrationBuilder.RenameColumn(
  77. name: "S_Height",
  78. table: "WCS_STATION50",
  79. newName: "VoucherNo");
  80. migrationBuilder.RenameColumn(
  81. name: "S_GoodsType",
  82. table: "WCS_STATION50",
  83. newName: "Request");
  84. migrationBuilder.RenameColumn(
  85. name: "S_GoodsStart",
  86. table: "WCS_STATION50",
  87. newName: "Goodsstart");
  88. migrationBuilder.RenameColumn(
  89. name: "S_GoodsSize",
  90. table: "WCS_STATION50",
  91. newName: "Goodsnum");
  92. migrationBuilder.RenameColumn(
  93. name: "S_GoodsEnd",
  94. table: "WCS_STATION50",
  95. newName: "Goodsend");
  96. migrationBuilder.RenameColumn(
  97. name: "S_GoodsCode",
  98. table: "WCS_STATION50",
  99. newName: "Istation521Status");
  100. migrationBuilder.RenameColumn(
  101. name: "G_Weight",
  102. table: "WCS_STATION50",
  103. newName: "GoodsSize");
  104. migrationBuilder.RenameColumn(
  105. name: "G_TaskId",
  106. table: "WCS_STATION50",
  107. newName: "Goodscode");
  108. migrationBuilder.RenameColumn(
  109. name: "G_Height",
  110. table: "WCS_STATION50",
  111. newName: "CmdType");
  112. }
  113. protected override void Down(MigrationBuilder migrationBuilder)
  114. {
  115. migrationBuilder.RenameColumn(
  116. name: "VoucherNo",
  117. table: "WCS_STATION50",
  118. newName: "S_Height");
  119. migrationBuilder.RenameColumn(
  120. name: "Tasknum",
  121. table: "WCS_STATION50",
  122. newName: "S_TaskId");
  123. migrationBuilder.RenameColumn(
  124. name: "Request",
  125. table: "WCS_STATION50",
  126. newName: "S_GoodsType");
  127. migrationBuilder.RenameColumn(
  128. name: "Istation521Status",
  129. table: "WCS_STATION50",
  130. newName: "S_GoodsCode");
  131. migrationBuilder.RenameColumn(
  132. name: "Goodsstart",
  133. table: "WCS_STATION50",
  134. newName: "S_GoodsStart");
  135. migrationBuilder.RenameColumn(
  136. name: "Goodsnum",
  137. table: "WCS_STATION50",
  138. newName: "S_GoodsSize");
  139. migrationBuilder.RenameColumn(
  140. name: "Goodsend",
  141. table: "WCS_STATION50",
  142. newName: "S_GoodsEnd");
  143. migrationBuilder.RenameColumn(
  144. name: "Goodscode",
  145. table: "WCS_STATION50",
  146. newName: "G_TaskId");
  147. migrationBuilder.RenameColumn(
  148. name: "GoodsSize",
  149. table: "WCS_STATION50",
  150. newName: "G_Weight");
  151. migrationBuilder.RenameColumn(
  152. name: "CmdType",
  153. table: "WCS_STATION50",
  154. newName: "G_Height");
  155. migrationBuilder.AddColumn<bool>(
  156. name: "G_BCR_NoRead",
  157. table: "WCS_STATION50",
  158. type: "bit",
  159. nullable: false,
  160. defaultValue: false);
  161. migrationBuilder.AddColumn<bool>(
  162. name: "G_B_Outside",
  163. table: "WCS_STATION50",
  164. type: "bit",
  165. nullable: false,
  166. defaultValue: false);
  167. migrationBuilder.AddColumn<bool>(
  168. name: "G_F_Outside",
  169. table: "WCS_STATION50",
  170. type: "bit",
  171. nullable: false,
  172. defaultValue: false);
  173. migrationBuilder.AddColumn<int>(
  174. name: "G_GoodsCode",
  175. table: "WCS_STATION50",
  176. type: "int",
  177. nullable: false,
  178. defaultValue: 0);
  179. migrationBuilder.AddColumn<short>(
  180. name: "G_GoodsEnd",
  181. table: "WCS_STATION50",
  182. type: "smallint",
  183. nullable: false,
  184. defaultValue: (short)0);
  185. migrationBuilder.AddColumn<bool>(
  186. name: "G_GoodsError",
  187. table: "WCS_STATION50",
  188. type: "bit",
  189. nullable: false,
  190. defaultValue: false);
  191. migrationBuilder.AddColumn<short>(
  192. name: "G_GoodsSize",
  193. table: "WCS_STATION50",
  194. type: "smallint",
  195. nullable: false,
  196. defaultValue: (short)0);
  197. migrationBuilder.AddColumn<short>(
  198. name: "G_GoodsStart",
  199. table: "WCS_STATION50",
  200. type: "smallint",
  201. nullable: false,
  202. defaultValue: (short)0);
  203. migrationBuilder.AddColumn<short>(
  204. name: "G_GoodsType",
  205. table: "WCS_STATION50",
  206. type: "smallint",
  207. nullable: false,
  208. defaultValue: (short)0);
  209. migrationBuilder.AddColumn<bool>(
  210. name: "G_H_Outside",
  211. table: "WCS_STATION50",
  212. type: "bit",
  213. nullable: false,
  214. defaultValue: false);
  215. migrationBuilder.AddColumn<bool>(
  216. name: "G_L_Outside",
  217. table: "WCS_STATION50",
  218. type: "bit",
  219. nullable: false,
  220. defaultValue: false);
  221. migrationBuilder.AddColumn<bool>(
  222. name: "G_Notask",
  223. table: "WCS_STATION50",
  224. type: "bit",
  225. nullable: false,
  226. defaultValue: false);
  227. migrationBuilder.AddColumn<bool>(
  228. name: "G_Overload",
  229. table: "WCS_STATION50",
  230. type: "bit",
  231. nullable: false,
  232. defaultValue: false);
  233. migrationBuilder.AddColumn<bool>(
  234. name: "G_PhStatus",
  235. table: "WCS_STATION50",
  236. type: "bit",
  237. nullable: false,
  238. defaultValue: false);
  239. migrationBuilder.AddColumn<bool>(
  240. name: "G_R_Outside",
  241. table: "WCS_STATION50",
  242. type: "bit",
  243. nullable: false,
  244. defaultValue: false);
  245. migrationBuilder.AddColumn<bool>(
  246. name: "G_Request",
  247. table: "WCS_STATION50",
  248. type: "bit",
  249. nullable: false,
  250. defaultValue: false);
  251. migrationBuilder.AddColumn<bool>(
  252. name: "G_Station_Ready",
  253. table: "WCS_STATION50",
  254. type: "bit",
  255. nullable: false,
  256. defaultValue: false);
  257. migrationBuilder.AddColumn<bool>(
  258. name: "S_AGV_Get_OK",
  259. table: "WCS_STATION50",
  260. type: "bit",
  261. nullable: false,
  262. defaultValue: false);
  263. migrationBuilder.AddColumn<bool>(
  264. name: "S_AGV_Put_OK",
  265. table: "WCS_STATION50",
  266. type: "bit",
  267. nullable: false,
  268. defaultValue: false);
  269. migrationBuilder.AddColumn<bool>(
  270. name: "S_Confirm",
  271. table: "WCS_STATION50",
  272. type: "bit",
  273. nullable: false,
  274. defaultValue: false);
  275. migrationBuilder.AddColumn<bool>(
  276. name: "S_TaskDelete",
  277. table: "WCS_STATION50",
  278. type: "bit",
  279. nullable: false,
  280. defaultValue: false);
  281. }
  282. }
  283. }