9bcb8501ab
- 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.
23 lines
814 B
PowerShell
23 lines
814 B
PowerShell
# 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
|