Remove SQLite runtime provider; keep for migration only
SQLite provider removed from service collection and runtime database options. Microsoft.Data.Sqlite package added to Jellyfin.Server for migration routines (SQLite → PostgreSQL). Migration service updated to always use PostgreSQL. SqliteExtensions restored for migration helpers. SQLite migration test deleted. Documentation added to explain migration-only support and deployment impact. No breaking changes for users migrating from SQLite; deployment size increases (~68 MB) for cross-platform SQLite DLLs.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
// <copyright file="EfMigrationTests.cs" company="PlaceholderCompany">
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Server.Implementations.Tests.EfMigrations;
|
||||
|
||||
using Jellyfin.Database.Providers.Sqlite.Migrations;
|
||||
using Jellyfin.Server.Implementations.Migrations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Xunit;
|
||||
|
||||
public class EfMigrationTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckForUnappliedMigrations_SqLite()
|
||||
{
|
||||
var dbDesignContext = new SqliteDesignTimeJellyfinDbFactory();
|
||||
var context = dbDesignContext.CreateDbContext([]);
|
||||
Assert.False(context.Database.HasPendingModelChanges(), "There are unapplied changes to the EFCore model for SQLite. Please create a Migration.");
|
||||
}
|
||||
}
|
||||
+4
@@ -38,4 +38,8 @@
|
||||
<ProjectReference Include="..\..\src\Jellyfin.Database\Jellyfin.Database.Implementations\Jellyfin.Database.Implementations.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="EfMigrations\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user