Use IDatabaseCreator instead of relying on History repository (#14465)

This commit is contained in:
JPVenson
2025-07-15 03:36:36 +03:00
committed by GitHub
parent 7ece959f4e
commit c51f3a3342
4 changed files with 1740 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Jellyfin.Server.Implementations.Migrations
{
/// <inheritdoc />
public partial class ResetJournalMode : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
// Resets journal mode to WAL for users that have created their database during 10.11-RC1 or 2
migrationBuilder.Sql("PRAGMA journal_mode = 'WAL';");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View File

@@ -15,7 +15,7 @@ namespace Jellyfin.Server.Implementations.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "9.0.6");
modelBuilder.HasAnnotation("ProductVersion", "9.0.7");
modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.AccessSchedule", b =>
{