Add scripts for PostgreSQL migration and SQLite removal; update project references
- Introduced `publish-with-sql.ps1` to publish Jellyfin with SQL files. - Added `remove-sqlite.ps1` to facilitate the removal of SQLite dependencies for PostgreSQL-only deployment. - Created `rollback-to-net10.ps1` to revert .NET 11 changes back to .NET 10. - Implemented `test_api.py` for testing API interactions. - Added `verify-migration.ps1` to verify PostgreSQL migration steps. - Updated various `.csproj` files to include `Microsoft.Kiota.Abstractions` package. - Enhanced `JellyfinDbContext` to handle concurrency exceptions during save operations. - Updated tests to include new package references and ensure compatibility with changes.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# copy-sql-files.ps1
|
||||
# Run this after publish to copy SQL files
|
||||
|
||||
param(
|
||||
[string]$PublishDir = "Jellyfin.Server\bin\Release\net11.0\publish"
|
||||
)
|
||||
|
||||
Write-Host "Copying SQL files to $PublishDir..." -ForegroundColor Cyan
|
||||
|
||||
# Create sql directory
|
||||
New-Item -ItemType Directory -Path "$PublishDir\sql" -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path "$PublishDir\sql\schema_init" -Force | Out-Null
|
||||
|
||||
# Copy SQL files
|
||||
Copy-Item "Jellyfin.Server\sql\*.sql" "$PublishDir\sql\" -Force
|
||||
Copy-Item "Jellyfin.Server\sql\schema_init\*.sql" "$PublishDir\sql\schema_init\" -Force -ErrorAction SilentlyContinue
|
||||
|
||||
Write-Host "✓ SQL files copied successfully!" -ForegroundColor Green
|
||||
|
||||
# List copied files
|
||||
Write-Host "`nCopied files:" -ForegroundColor Yellow
|
||||
Get-ChildItem "$PublishDir\sql" -Recurse -File | Select-Object FullName
|
||||
Reference in New Issue
Block a user