20230323051647_AddIsProduce.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Business.Migrations.BusinessExtMigrationDb
  4. {
  5. public partial class AddIsProduce : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<string>(
  10. name: "FIsAsset",
  11. table: "in_kd_material",
  12. type: "varchar(1)",
  13. maxLength: 1,
  14. nullable: true,
  15. comment: "允许资产")
  16. .Annotation("MySql:CharSet", "utf8mb4");
  17. migrationBuilder.AddColumn<string>(
  18. name: "FIsProduce",
  19. table: "in_kd_material",
  20. type: "varchar(1)",
  21. maxLength: 1,
  22. nullable: true,
  23. comment: "FIsProduce")
  24. .Annotation("MySql:CharSet", "utf8mb4");
  25. }
  26. protected override void Down(MigrationBuilder migrationBuilder)
  27. {
  28. migrationBuilder.DropColumn(
  29. name: "FIsAsset",
  30. table: "in_kd_material");
  31. migrationBuilder.DropColumn(
  32. name: "FIsProduce",
  33. table: "in_kd_material");
  34. }
  35. }
  36. }