20220509014424_任务新增产品长度.cs 697 B

1234567891011121314151617181920212223242526
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class 任务新增产品长度 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<decimal>(
  10. name: "Length",
  11. table: "WCS_TASK",
  12. type: "decimal(18,2)",
  13. nullable: false,
  14. defaultValue: 0m);
  15. }
  16. protected override void Down(MigrationBuilder migrationBuilder)
  17. {
  18. migrationBuilder.DropColumn(
  19. name: "Length",
  20. table: "WCS_TASK");
  21. }
  22. }
  23. }