Disable EF Core migrations for .NET 11 preview - use manual SQL scripts instead
This commit is contained in:
@@ -395,6 +395,13 @@ public sealed class PostgresDatabaseProvider : IJellyfinDatabaseProvider
|
||||
if (pendingMigrationsList.Count > 0)
|
||||
{
|
||||
logger.LogInformation("Found {Count} pending migrations: {Migrations}", pendingMigrationsList.Count, string.Join(", ", pendingMigrationsList));
|
||||
|
||||
// DISABLED: EF Core migrations don't work with .NET 11 preview
|
||||
// Use manual SQL scripts in Jellyfin.Server/sql/schema_init/ directory instead
|
||||
logger.LogWarning("EF Core migrations are disabled for .NET 11 preview. Please apply migrations manually using SQL scripts in sql/schema_init/ directory.");
|
||||
logger.LogWarning("Run the following script: apply-supplementary-indexes-migration.sql");
|
||||
|
||||
/* COMMENTED OUT - EF migrations not compatible with .NET 11 preview
|
||||
logger.LogInformation("Applying migrations...");
|
||||
|
||||
try
|
||||
@@ -428,6 +435,7 @@ public sealed class PostgresDatabaseProvider : IJellyfinDatabaseProvider
|
||||
logger.LogWarning("If you're seeing this on a test/production system, ensure all migration files are deployed.");
|
||||
throw;
|
||||
}
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user