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.

52 lines
1.5 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 init20240605001 : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AddColumn<char>(
  11. name: "is_sign_in",
  12. table: "register_check",
  13. type: "character(1)",
  14. maxLength: 1,
  15. nullable: false,
  16. defaultValueSql: "'N'",
  17. comment: "是签收");
  18. migrationBuilder.AddColumn<string>(
  19. name: "sign_in_person",
  20. table: "register_check",
  21. type: "character varying(16)",
  22. maxLength: 16,
  23. nullable: true,
  24. comment: "签收人姓名");
  25. migrationBuilder.AddColumn<DateTime>(
  26. name: "sign_in_time",
  27. table: "register_check",
  28. type: "timestamp without time zone",
  29. nullable: true,
  30. comment: "签收时间");
  31. }
  32. protected override void Down(MigrationBuilder migrationBuilder)
  33. {
  34. migrationBuilder.DropColumn(
  35. name: "is_sign_in",
  36. table: "register_check");
  37. migrationBuilder.DropColumn(
  38. name: "sign_in_person",
  39. table: "register_check");
  40. migrationBuilder.DropColumn(
  41. name: "sign_in_time",
  42. table: "register_check");
  43. }
  44. }
  45. }