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:
@@ -220,7 +220,8 @@ internal class JellyfinMigrationService
|
||||
ICollection<CodeMigration> migrationStage = (Migrations.FirstOrDefault(e => e.Stage == stage) as ICollection<CodeMigration>) ?? [];
|
||||
|
||||
// Filter out SQLite-specific migrations when using non-SQLite providers
|
||||
bool isSqliteProvider = _jellyfinDatabaseProvider is Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider;
|
||||
// Note: SQLite provider has been removed from runtime, but migration support remains
|
||||
bool isSqliteProvider = false; // Always false - SQLite not supported as runtime provider
|
||||
if (!isSqliteProvider)
|
||||
{
|
||||
var sqliteSpecificMigrations = migrationStage.Where(m => m.Metadata.RequiresSqlite).ToList();
|
||||
|
||||
Reference in New Issue
Block a user