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.

28 lines
772 B

2 years ago
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Shentun.Peis.Migrations
  4. {
  5. public partial class init20240502001 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<char>(
  10. name: "barcode_mode",
  11. table: "asbitem",
  12. type: "character(1)",
  13. maxLength: 1,
  14. nullable: false,
  15. defaultValueSql: "'0'",
  16. comment: "条码模式");
  17. }
  18. protected override void Down(MigrationBuilder migrationBuilder)
  19. {
  20. migrationBuilder.DropColumn(
  21. name: "barcode_mode",
  22. table: "asbitem");
  23. }
  24. }
  25. }