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.

53 lines
1.6 KiB

2 years ago
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Shentun.Peis.Migrations
  5. {
  6. public partial class init20240603001 : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AddColumn<Guid>(
  11. name: "appoint_patient_register_id",
  12. table: "patient_register",
  13. type: "uuid",
  14. nullable: true,
  15. comment: "预约人员登记ID");
  16. migrationBuilder.AddColumn<char>(
  17. name: "is_disable_pregnancy",
  18. table: "asbitem",
  19. type: "character(1)",
  20. maxLength: 1,
  21. nullable: false,
  22. defaultValueSql: "'N'",
  23. comment: "怀孕期间禁止检查");
  24. migrationBuilder.AddColumn<char>(
  25. name: "is_disable_prepare_pregnancy",
  26. table: "asbitem",
  27. type: "character(1)",
  28. maxLength: 1,
  29. nullable: false,
  30. defaultValueSql: "'N'",
  31. comment: "备孕期间禁止检查");
  32. }
  33. protected override void Down(MigrationBuilder migrationBuilder)
  34. {
  35. migrationBuilder.DropColumn(
  36. name: "appoint_patient_register_id",
  37. table: "patient_register");
  38. migrationBuilder.DropColumn(
  39. name: "is_disable_pregnancy",
  40. table: "asbitem");
  41. migrationBuilder.DropColumn(
  42. name: "is_disable_prepare_pregnancy",
  43. table: "asbitem");
  44. }
  45. }
  46. }