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.

37 lines
1.2 KiB

  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Shentun.Peis.Migrations
  4. {
  5. public partial class init0531001 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AlterColumn<string>(
  10. name: "poison",
  11. table: "patient_occupational_history",
  12. type: "character varying(100)",
  13. maxLength: 100,
  14. nullable: true,
  15. oldClrType: typeof(string),
  16. oldType: "character varying(30)",
  17. oldMaxLength: 30,
  18. oldNullable: true);
  19. }
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.AlterColumn<string>(
  23. name: "poison",
  24. table: "patient_occupational_history",
  25. type: "character varying(30)",
  26. maxLength: 30,
  27. nullable: true,
  28. oldClrType: typeof(string),
  29. oldType: "character varying(100)",
  30. oldMaxLength: 100,
  31. oldNullable: true);
  32. }
  33. }
  34. }