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.

20230223124442_ChangedNoteInitialValueToEmptyString.cs 996B

123456789101112131415161718192021222324252627282930313233
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Diligent.WebAPI.Data.Migrations
  4. {
  5. public partial class ChangedNoteInitialValueToEmptyString : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AlterColumn<string>(
  10. name: "Note",
  11. table: "Files",
  12. type: "nvarchar(max)",
  13. nullable: false,
  14. defaultValue: "",
  15. oldClrType: typeof(string),
  16. oldType: "nvarchar(max)",
  17. oldNullable: true);
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AlterColumn<string>(
  22. name: "Note",
  23. table: "Files",
  24. type: "nvarchar(max)",
  25. nullable: true,
  26. oldClrType: typeof(string),
  27. oldType: "nvarchar(max)");
  28. }
  29. }
  30. }