20230615073830_addtable20230615.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Business.Migrations
  4. {
  5. public partial class addtable20230615 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<long>(
  10. name: "morder_id",
  11. table: "srm_po_occupy",
  12. type: "bigint",
  13. nullable: true,
  14. comment: "工单ID");
  15. migrationBuilder.AddColumn<string>(
  16. name: "morder_mo",
  17. table: "srm_po_occupy",
  18. type: "nvarchar(max)",
  19. nullable: false,
  20. defaultValue: "",
  21. comment: "工单编号");
  22. }
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.DropColumn(
  26. name: "morder_id",
  27. table: "srm_po_occupy");
  28. migrationBuilder.DropColumn(
  29. name: "morder_mo",
  30. table: "srm_po_occupy");
  31. }
  32. }
  33. }