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.

43 lines
1.3 KiB

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