20220505084819_MarkingsJsonb.cs 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. #nullable disable
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace Content.Server.Database.Migrations.Sqlite
  4. {
  5. public partial class MarkingsJsonb : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.DropColumn(
  10. name: "markings",
  11. table: "profile");
  12. migrationBuilder.AddColumn<byte[]>(
  13. name: "markings",
  14. table: "profile",
  15. type: "jsonb",
  16. nullable: true);
  17. }
  18. protected override void Down(MigrationBuilder migrationBuilder)
  19. {
  20. migrationBuilder.DropColumn(
  21. name: "markings",
  22. table: "profile");
  23. migrationBuilder.AddColumn<string>(
  24. name: "markings",
  25. table: "profile",
  26. type: "TEXT",
  27. nullable: false,
  28. defaultValue: "");
  29. }
  30. }
  31. }