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.

39 lines
1.2 KiB

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