PostgreSQL: replace EF migrations with SQL-first initialization, fix connection handling, and update setup docs #1

Merged
wjones merged 24 commits from upgrade-to-NET11 into main 2026-04-13 15:07:36 -04:00

24 Commits

Author SHA1 Message Date
wjones 41e8477673 Refactor code structure for improved readability and maintainability 2026-04-13 14:57:37 -04:00
wjones 45dc885cd5 Update publish profile to Linux x64; refresh scenario time
Changed the last used publish profile in Jellyfin.Server.csproj.user from Windows x64 to Linux x64. Also updated the lastUpdateTime in scenario.json to reflect recent activity.
2026-03-10 17:08:43 -04:00
wjones 73d3c0f733 Add jellyfin-ffmpeg requirements and recommendations to README 2026-03-10 14:54:05 -04:00
wjones 2183ed4d63 Add comprehensive README with Linux dependencies and PostgreSQL configuration guide 2026-03-10 14:20:16 -04:00
wjones e6e7c49888 Fix EnsureDatabaseExistsAsync to respect ConnectionString from configuration - was still using localhost default 2026-03-10 13:47:50 -04:00
wjones 7deb7c1432 Fix SA1513 StyleCop error - add blank line after closing brace 2026-03-10 13:01:12 -04:00
wjones 077f10a4af Fix connection configuration - respect ConnectionString and individual options from database.xml 2026-03-10 12:55:49 -04:00
wjones a872ebc640 commit 2026-03-09 15:24:01 -04:00
wjones 43e866f446 Add schema directories to gitignore - ignore database dumps recursively 2026-03-09 15:16:06 -04:00
wjones e790f84ace Re-enable database creation check to prevent crash when database doesn't exist 2026-03-08 11:31:08 -04:00
wjones caa30d8b88 Remove CREATE DATABASE from schema script - database already created via config 2026-03-08 11:27:30 -04:00
wjones bb9329736f Fix password masking error - password not in args anyway 2026-03-08 11:19:28 -04:00
wjones d4426fe0f6 Use psql subprocess to execute schema script - handles psql meta-commands 2026-03-08 11:13:39 -04:00
wjones 7657caa960 Fix database initialization detection - check for TABLES not just schemas 2026-03-08 11:07:16 -04:00
wjones ac1c2c6c82 CRITICAL FIX: Also disable database migrations in JellyfinMigrationService - was running InitialCreate 2026-03-08 10:50:00 -04:00
wjones 2209f0e1c0 COMPLETE REWRITE: Remove ALL migration code, implement pure SQL script initialization 2026-03-07 13:29:23 -05:00
wjones 7e2c08499b Document automatic empty database initialization feature 2026-03-07 13:08:28 -05:00
wjones 75acefe989 Add automatic SQL script execution for empty database initialization 2026-03-07 13:07:44 -05:00
wjones c4127e7749 Update README paths and disable EnsureCreatedAsync to prevent automatic schema creation 2026-03-07 13:03:10 -05:00
wjones 2d6e10e163 CRITICAL: Also disable EnsureCreatedAsync - it was bypassing migration tracking and creating schema 2026-03-07 13:01:33 -05:00
wjones 5c711bc235 Add database setup documentation for .NET 11 preview manual migration workflow 2026-03-07 12:52:52 -05:00
wjones 091114657b Disable EF Core migrations for .NET 11 preview - use manual SQL scripts instead 2026-03-07 12:52:05 -05:00
wjones 5202d72999 Fix ActivityLogs index creation - remove DO block for CONCURRENTLY support 2026-03-07 12:37:46 -05:00
wjones f47a544c7a Add manual SQL script for applying supplementary indexes migration 2026-03-07 12:35:00 -05:00