20241011100757_LibraryPeopleRoleMigration.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Jellyfin.Server.Implementations.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class LibraryPeopleRoleMigration : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.DropColumn(
  12. name: "Role",
  13. table: "Peoples");
  14. migrationBuilder.AddColumn<string>(
  15. name: "Role",
  16. table: "PeopleBaseItemMap",
  17. type: "TEXT",
  18. nullable: true);
  19. }
  20. /// <inheritdoc />
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.DropColumn(
  24. name: "Role",
  25. table: "PeopleBaseItemMap");
  26. migrationBuilder.AddColumn<string>(
  27. name: "Role",
  28. table: "Peoples",
  29. type: "TEXT",
  30. nullable: true);
  31. }
  32. }
  33. }